Using the shortcode
-
Hello,
Great plugin and really easy to use and setup.
I’m trying to use the Shortcode with parameters in my functions.php file like this:
function action_woocommerce_before_add_to_cart_button( ) {
echo do_shortcode ( ‘[wp_paypal_payment_box options=”Event promoted once – £5 1:5.00|Event promoted 2 or more times – £10 2:10.00″]’ );
return;}
add_action( ‘woocommerce_before_add_to_cart_button’, ‘action_woocommerce_before_add_to_cart_button’, 10, 0 );Nothing happens, and I’m sure I’m doing something wrong with the way I pass the parameters but can’t figure out how to fix it – can you help me please?
Thanks
Guy
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Using the shortcode’ is closed to new replies.