I’m using Gravity Forms User Registration add-on and need to remove the action that include the activate page.
In the add-on, the hook is called like this:
add_action( 'wp', array( $this, 'maybe_activate_user' ) );
This is added inside a public function called init()
, a method from GF_User_Registration
class.
What I tried:
add_action('init', function () {
remove_action('wp', ['GF_User_Registration', 'maybe_activate_user']);
});