• Resolved lewisself

    (@lewisself)


    Hello,

    On my theme I have moved the checkout create account form. It seems that this plugin has removed the billing and shipping checkout fields and adds the create account form back into the woocommerce_checkout_billing action. Resulting in duplicate forms on my checkout. This happens inside of the WC_Gateway_PPEC_Checkout_Handler class line 94.

    I have found ways of removing the action but it requires using the class instance. The main plugin file doesn’t create an instance as a variable but instead uses a function which creates the instance and runs the code. I’ve tried using the code below but for some reason doesn’t work. Any ideas why?

    remove_action('woocommerce_checkout_billing', array('WC_Gateway_PPEC_Checkout_Handler', 'account_registration'))

The topic ‘Remove action inside plugin’ is closed to new replies.