I've searched around but haven't been able to find a solution to this. I'm trying to hook in and remove an action that was initiated by a plugin (specifically the Groups plugin). The function itself is contained within a class in the plugin. It basically breaks down like this
class Groups_Registered {
...
public static function init() {
add_action( 'user_register', array( __CLASS__, 'user_register' ) );
}
...
}
Groups_Registered::init();
I've tried to just remove the action, referring back to the class, but it doesn't seem to be working. I've added this to my functions.php file, but it is not removing the action. A
remove_action( 'user_register', array( Groups_Registered::init(), 'user_register' ) );
Anyone know how to solve? I've seen some solutions out there but none of them seem to work.
function mfields_test_remove_actions() { remove_action( 'wp_footer', 'my_wp_footer' ); remove_action( 'wp_footer', array( 'MyClass', 'my_action' ), 10 ); remove_action( 'wp_footer', array( 'MyStaticClass', 'my_action' ), 10 ); } add_action( 'wp_head', 'mfields_test_remove_actions' );
with user_register and the Groups_Registered class, but that didn't do it.