Remove paypal checkout button based on certain conditions
-
I wish to remove the paypal checkout buttons based on certain conditions our users must satisfy before they’re allowed to purchase a product. I was able to trace it to this line
add_action( 'woocommerce_after_add_to_cart_form', array( $this, 'display_paypal_button_product' ), 1 );
in the class WC_Gateway_PPEC_Cart_Handler. how do i execute the equivalent remove action call for this since it’s a class in a class and i couldn’t find any global declarations i could use to reference the function?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Remove paypal checkout button based on certain conditions’ is closed to new replies.