Problem solved!
add_action('init', function () {
$object = \GF_User_Registration::get_instance();
remove_action('wp', [$object, 'maybe_activate_user']);
}, 20);
Thanks SallyCJ for the tips!
Related Posts:
- what is correct way to hook when update post
- Enforcing password complexity
- Does an activated plugin automatically mean its methods are available to other WP functions?
- How to set custom cookies before output
- Check php version before theme activation
- Getting the action’s tag name within the action
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- Action ‘save_post’ not working for quick edit
- add_meta_boxes action with refresh on save
- Use wc_enqueue_js only on specific pages – nested add_action
- How to Remove a Filter from the Admin List Table?
- Hooking new functions to actions + passing parameters
- Find variables available at a given hook
- Why do filters/actions require an argument count?
- Appending meta value onto post content in WordPress during save_post
- Delete option value from array using update_option()
- How to access function from outside of a class within this class in WP plugin?
- Extend a class of a plugin
- How to use return in my custom function instead of echo
- WP_cron won’t trigger my action
- How to add custom post meta to default blog post?
- Using file_get_contents with Gravity Forms uploads folder to create images in the media library returning false
- Adding Default Settings to Theme My Login plugin
- action is not called after a php request
- Ajax not working es expected (Returns 0)
- How do I dynamically populate a shortcode with a variable from URL?
- Custom Form Processing Issue
- add_action shortcut?
- Ajax – Call to undefined function get_option()
- add element with add_action to posts from a specific category ID
- Capture User Email Address When Filling Out Form
- Trying to place a custom field after the total section in the checkout page in woocommerce
- Set meta field to publish date + 2 weeks
- Adding widgets to my plugin page instead of WordPress dashboard
- Function to capture a value and store it in a variable
- Keyword checking in Gravity Forms
- action theme mailchimp subscriber fields
- Gravity form built in Captcha
- Adding function to Genesis genesis_header [closed]
- Modify custom field input data before creating a new post
- How do I limit the number of forms a user can create in gravity forms?
- Error call_user_func_array() expects parameter 1 to be a valid callback when using image_size_names_choose
- jQuery code not working when included in functions.php
- add_action taking an array with the 2nd argument?
- Should `wp_login` be used since it’s deprecated?
- How to show a users bio on a page
- Override a function defined in wp-includes/comment-template.php
- Change order of custom submenu link in WP Admin?
- Using data sent via AJAX in multiple functions on a WP plugin
- Logic on a Gravity Forms redirect [closed]
- WordPress redirect redirecting too many times or not at all
- Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?
- How to pass argument to add_action while the method is inside a class?
- Display attribute on shop page after the title
- PHP -> SQL Query with Summing
- Action Hook Inside WordPress Plugin Shortcode
- Dynamically adding filters
- Gravity Forms merge tags in templates?
- Woocommerce custom Plugin in wordpress [closed]
- WordPress Post Block Element not properly parsed with the_content filter
- Use PHP Class in WordPress functions
- Updating user meta adds string count to value?
- WordPress How do I pass a variable from one add_action to another?
- Gravity Forms: How to add PHP function to confirmation conditional shortcode?
- Trouble Accessing Gravity Forms API (GFAPI)
- I want to hide “sold by” on certain pages with id page 43
- How do I remove an action hook inside a class that is called by another class?
- How to get current post id in gform_field_validation gravity forms
- add ‘publish metabox’ to Gravity forms edit page/form area
- in the post admin, is it possible to make the post title input disabled using php?
- Run htmlentities() on all submitted values through gravity forms
- Hook into all password resets in WordPress and get password before hashing?
- Why should I need to add init action to include PHP file to WordPress Plugin?
- Attaching an upload to a user
- remove_action() not working in page template – Genesis
- Unable to pass arguments to function used in add_action
- How to hook into the subscriber /wp-admin/index.php page?
- wordpress form action page not found
- Gravity Forms on submit return value on same page
- media_handle_upload fails with gravity form submitted image
- Add two or multiple functions in WordPress Post or Page
- Submit to itself don’t work
- WordPress HTML Helper
- At what point during a typical request does the $wpdb object become available?
- Highlight posts currently being edited on multiple editor site?
- WordPress Plugin Receive a Link
- How to execute add_action() function from custom plugin to Crontrol plugin or do_action()?
- How to add custom checkout field in user details mail template
- Adding Gravity Form With if(is_page) Is Not Working
- Cannot modify header information – headers already sent
- Fix incorrect related posts code snippet
- Gravity Forms – Prevent Multiple Form Entries Same User ID with Same Field Value
- Why a class property becomes empty?
- How to change wp-admin and wp-login urls
- How to sort custom sortable column by custom table value
- Is there a hook that I can use when a fatal error occurs?
- Execute wp_after_insert_post after the permalink is customized
- Too few arguments – wp_login action
- Unable to remove action from parent theme via child theme