Tag Info

New answers tagged


That plugin makes its init function wcpgsk_init() pluggable, so another way to override it is to define it first in a must-use plugin (as it's too late in your theme's "functions.php"). So you could put your override in "wp-content/mu-plugins/functions.php": function wcpgsk_init() { global $wcpgsk, $wcpgsk_about, $wcpgsk_options, $wcpgsk_session, ...


If your plugin is registered like this: class Test_Class_Parent { function __construct() { add_action('wp_head',array($this,'test_method')); } function test_method() { echo 'Echoed from the parent'; } } $p = new Test_Class_Parent(); Then you should be able to remove the filter by accessing the global: class Test_Class_Child extends ...


This should work: add_action( 'woocommerce_init', 'remove_wcpgsk_email_order_table' ); function remove_wcpgsk_email_order_table() { global $wcpgsk; remove_action( 'woocommerce_email_after_order_table', array( $wcpgsk, 'wcpgsk_email_after_order_table' ) ); }

Top 50 recent answers are included