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
- Can i check if user is doing any ajax request?
- 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?
- Insert post without actions/hooks
- 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
- save_post vs post_updated
- 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
- action hook wp_head higher priority as all other plugins/hooks
- 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
- Remove an action hook within a Class
- Ajax not working es expected (Returns 0)
- How do I dynamically populate a shortcode with a variable from URL?
- How to pass arguments to add_action() or retrieve return value of called function?
- Custom Form Processing Issue
- add_action shortcut?
- Is it acceptable to treat a filter like an action?
- 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
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- 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
- Nested “do” and “add” Actions is possible?
- 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]
- How to catch wordpress post ID when it’s published
- 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]
- How to pass hook variable to function?
- Change image data durgin upload
- using shortcodes inside gravity forms
- WordPress Post Block Element not properly parsed with the_content filter
- Dynamically populate parameter in Gravity Forms using PHP
- remove_action from parent theme using child theme functions.php
- Use PHP Class in WordPress functions
- WordPress HTML Helper
- At what point during a typical request does the $wpdb object become available?
- How does add_action ‘comment_post’ work?
- Highlight posts currently being edited on multiple editor site?
- Custom action on comment post
- 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
- Code working in functions.php but not pluign for gavity forms
- 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
- Show post in elementor based on views and specific category with query id feature in elementor
- Function for Post Creation plugin for Gravity Forms
- Disable RSS /feed/ endpoints on posts without disabling RSS overall
- Unable to remove action from parent theme via child theme