How to remove_action from ultimate member?
-
Hey there,
I am trying to remove the ‘user_register_via_admin’ action that is registered in the um\core\User class. However, I can’t seem to succeed with removing the action, since I’m not entirely sure how to access the class it is registered in.
What i’ve tried so far:
add_action( 'user_register', 'remove_UM_action', 9 ); function remove_UM_action(){ remove_action('user_register', array('um\core\User', 'user_register_via_admin'), 10, 1 ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to remove_action from ultimate member?’ is closed to new replies.