I’m displaying a woocommerce notice with a popup shortcode inside. When you try to click it, it works but redirects the URL to ‘ /void(0 ‘. How to amend this code to prevent this from happening. Thanks
$message = __( 'Please Sign Up or Login', 'my-plugin ' ) . do_shortcode('[arm_form popup="true"]');
wc_add_notice( $message );
2
Answers
I'm using a plugin called AR Member , I had to change the following:
wp-content/plugins/armember/core/classes/class.arm_member_forms.php Line: 1699
Before:
After:
The downside is that when the plugin updates I will have to update it again, maybe someone could advise if this can be pulled into theme functions in some way?
Thanks to @Basharmal for a pointer in the right direction :-)
Please change the plugin code .
Go to
find the code line no
79
to84
prnt.sc/q882pq
just replace the code
to
this way
the future if plugin will update your code will lose