Install
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.zipEnables 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
- Upload the
liberate-arprice-linksdirectory to the/wp-content/plugins/directory - 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