WP Manifestindependent plugin directory
manifest / utilities / liberate-arprice-links

Liberate ARPrice Links

A WordPress plugin that enables JavaScript in button links created by ARPrice, a pricing table plugin.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/fridaysystems/liberate-arprice-links/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Enables JavaScript in ARPrice pricing table button links.

Description

This plugin modifies the way the ARPrice plugin makes buttons link to URLs. The default behavior of ARPrice wraps all links with a JavaScript function, called arp_redirect(), in the onclick attribute of elements. This design prevents users from entering JavaScript instead of a URL, and this plugin removes that limitation.

If a URL is provided, that URL is assigned to location.href to allow links to continue working without the redirect function. If JavaScript is entered as a button's link, that JavaScript will be inserted directly into the button's onclick attribute.

I wrote this plugin while trying to make our ARPrice tables cooperate with a specific WooCommerce implementation.

Installation

  1. Upload the liberate-arprice-links directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

Changelog

1.1.0

  • [Added] Adds a feature that removes some CSS that sets a font-family on buttons.
  • [Added] Adds a feature that removes pixel dimensions set on buttons.

1.0.0

  • First build