You want:
remove_action('um_post_registration_approved_hook', 'um_post_registration_approved_hook', 10, 2);
… to run after the original add_action, but before the action triggers the function um_post_registration_approved_hook
The easiest way to do this, but I haven’t tested it, might be to just give your removal an earlier priority on the same hook:
add_action( 'um_post_registration_approved_hook', 'remove_my_action', 9 );
function remove_my_action(){
remove_action('um_post_registration_approved_hook', 'um_post_registration_approved_hook', 10, 2);
}
This is what you were trying, but the priority was the wrong way around. 11 runs after 10.
Related Posts:
- Autogenerate wordpress shortcodes using array?
- Shortcode display outside the div
- How to stop or remove an action being called inside a function of an extended class
- wordpress plugin is not activating from widget
- Calling plugin function inside custom plugin for onclick event
- What is @Action in WordPress?
- Create a post builder skin in a plugin
- Plugin Development – Functions or Hooks?
- Are there action hooks for comments?
- How to remove a class function from a plugin by using remove_action()?
- Add action to custom Function
- The function called on the wp head hook becomes null
- Sharing varible between two add_actions
- How to Unhook actions/filters in within Class in plugin
- WPML – Hook when language is switched (change user language)
- Use action, filter, or hook to append HTML to WordPress plugin function
- Why is WP template_include overwritting all templates rather than specified page?
- how to repeat taxonomy in different places on wordpress
- AJAX login without a plugin does not work. when add a action to function.php
- add query string to all pages after user logged in
- Call a function with href
- Plugin update error message
- When can you get current page ID and initialize hooks right after?
- How to handel multiple checkbox field in the admin settings page with Settings API
- wp_insert_user – how to send verification email before logging in
- Is the WordPress HTTPS Plugin Still Safe To Use? [closed]
- Set a User as Author of all ‘New Posts’ posted
- Post source link plugin – small modification
- Which hook callback has priority if both plugin and theme use the same hook?
- How do you auto-activate plugins from child themes
- Use external link in the add sub menu
- Disabling post images for not logged in users
- Is it possible to remove this action? (as it’s added just before it’s called)
- Extend Elementor Archive Posts widget with a custom skin in order to show multiple badges
- HELP: Integrating WP with raw PHP code once published button is hit
- How to call bind function in wordpress actions or hooks
- How to redirect Old Post URL to new Post and keep Old post Comments?
- Modifying Footnote Plugin for Descriptive Title Attributes
- I would like to use create a function in my custom plugin to tell WP to use a different header
- bulk change of image setting “link to” to “link to: image url “
- Limit the number of plugins that can be installed in a WordPress installation
- How to get variables from fucntion.php to my plugin files
- ‘wp_login’ action hook not working with wp-login.php file
- Insert new user with form submit ‘init’ hook
- Date calculations from 2 custom fields
- How to debug error message: Cannot modify header information
- How to enable specific plugin only based around shop manager role?
- How to check current user before all actions and filters?
- Adding a new field to the address field type in gravity forms
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- add_action in static class [closed]
- How to set Noindex to all wordpress pages in a catergory?
- How to get post ID with hooks publish_post, new_to_publish, etc
- Load Javascript from Plugin in One Page Only?
- How to keep variable `$post` to using in another file
- the_post hook is not firing for me
- do_action Nested List
- How to create Admin Notice from Plugin with argument? [duplicate]
- Editing wp-config.php
- wp_dequeue_script for a Plugin
- wc_get_template new template does not showing up
- Overriding an Array in a Plugin’s Class/Function from functions.php
- Change Header (Logo) Based on Login
- override function from my plugin [closed]
- How can i list random author?
- Can you echo PHP code from a variable?
- Defining the value of a variable before a function?
- How to get custom minimum price in Woocommerce
- Dynamic URL Rewrite for Custom
- how to validate input field in wordpress generated with wpform plugin
- Error using wordpress functions inside a plugin class
- Share my WordPress plugin for updating how?
- Submitting form to PHP
- How to detect 404 url and make this link underline or change background color?
- working code, not working – Plugin Dev
- How use get_plugin_updates() function?
- how override a define
- Nested Actions and Filters
- How to disable/enable a plugin at a specific time
- Configuring default woo commerce login with modal popup
- Dynamically Modify s2member Options
- echo plugin results on pages
- register_activation_hook doesn’t fire at all
- What action/hook do I need to register to have my plugin handle front-end editing?
- My ajax request don´t work and return 0
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- How to delete posts older than one year with post meta, post attachments and files?
- wp_login_form() ignoring login_form action hook
- Create csv file in plugin
- Load wordpress enviroment for external content?
- How do add_action and WP_Query
- How to structure plugin in to functions?
- How to disable register and reset the password from WordPress admin panel?
- What is wrong with this dbDelta syntax?
- Adding a script & php to functions.php
- Override the plugin class and function
- Activate and deactivate two plugins automatically at certain hours
- Create WordPress category dynamically
- Simple ajax request with Vanilla JS keeps given 400 Bad Request