Title: Remove action inside plugin
Last modified: October 10, 2018

---

# Remove action inside plugin

 *  Resolved [lewisself](https://wordpress.org/support/users/lewisself/)
 * (@lewisself)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/remove-action-inside-plugin/)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-gateway-paypal-express-
   checkout_b298d1.svg)
 * [WooCommerce PayPal Checkout Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [lewisself](https://wordpress.org/support/users/lewisself/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/remove-action-inside-plugin/)
 * Status: resolved