Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

Overide wordpress plugin javascript function

Wordpress plugin javascript function overide. I have a plugin that ads functionality to a woocommerce checkout page. I need to over ride a javascript function in the plugin . How do i properly over ride one specific function?
Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Robert Granlund

ASKER

So the script is enqued with this line in the plugin:

wp_register_script( 'opc-script', $this->plugin_url() . '/scripts/ignitewoo-opc.js', array( 'jquery' ), WC_VERSION, true );
wp_enqueue_script( 'opc-script' );

So how do I de-enque and use mine?