You can use remove_action()
to remove a function from a specified action hook. Documentation
remove_action( string $tag, callable $function_to_remove, int $priority = 10 )
This function removes a function attached to a specified action hook. This method can be used to remove default functions attached to a specific filter hook and possibly replace them with a substitute.
So in your case,
// Remove the function from 'save_post' action
remove_action('save_post', 'um_activity_new_woo_product', 99999 );
// Add your own function my_activity_new_woo_product(), to 'save_post' action
add_action('save_post', 'my_activity_new_woo_product', 99999, 1 );
I hope this may help.
Related Posts:
- MySQL “Or” Condition
- What is the significance of the number, 32767?
- PHP – how to create a newline character?
- How to register images uploaded via FTP in media library?
- I can’t fetch query parameters ($_GET parameters) with get_query_var
- how to get permalink structure with php
- Disable comment rss feeds for pages in wordpress
- Archive listing of posts by publish year (multiple years)
- jQuery functions only work on homepage
- “Maximum function nesting level of ‘100’ reached” after adding a new filter
- How to change post count in wordpress loop?
- How can I loop into two different DIVS without repeating the DIVs
- get_post_custom single array
- File upload, uploads only file name
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- Get_the_author doesn’t return author name
- How can I add tinymce editor in WordPress with jQuery?
- Custom PHP page form data is not appearing as a wp-theme page template
- Changing Woocommerce flat rate every nth number of items
- Cannot add javascript to footer
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- HTML tags in bloginfo description
- WP functions in .js
- How to Add Extra Search terms with WordPress Search keyword term?
- How do I add custom bulk actions to multiple custom post types?
- How to prevent XSS alter custom global javascript object & methods in WordPress
- Ubuntu Server/PHP: How do I ensure WP uses the latest PHP version on my server?
- How do I programmatically set a user as spam in BuddyPress? [closed]
- Post + form + action + results on the same page
- wordpress 4.4 self hosted video (html5) doesn’t show
- Pagination in plugin’s backend
- WordPress style.css not updating, only after theme reload
- Saving zero in meta box
- How to edit php code in WordPress Post file?
- site_url and $current_user producing undesired results
- Is the wp_enqueue method efficient?
- Add Ajax Hooks and Call from Custom Template PHP
- Why in my theme I can’t see all the statics content under the posts?
- Display all pages – in order
- Backend of the WordPress.com [closed]
- Get Page ID from Backend
- PHP in Edit Post link
- How to make jquery count down timer function manually editable
- Hierarchical taxonomy list with modificated term links
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- Double Curly Brackets in Php
- WordPress filter load_textdomain_mofile not working inside a child theme’s functions.php but works form inside a plugin
- How to unlink all posts from tracking same amount of views
- Redirect a WP created page to a manually created PHP file inside theme folder
- How to hide posts of a specific custom category in WordPress?
- Output category list inside array
- Have Woocommerce show product price if id, when not logged in
- Composer setup-config.php not found
- Problems clearing cache
- Extend Menu Walker Output
- How to debug failed changes to posts?
- how to add a div inside wp_page_menu
- Add “alt” Attribute to GD Star Rating Tags
- calling admin-ajax.php from admin-ajax.php
- Inline related post Gutemberg
- wp_query with multiple arguments with AND
- Sending POST request on a wordpress page
- How can I reduce time to first byte?
- how to replace h1 entry title with h2 in category pages only
- Infinite next / prev post in single.php page
- ACF: Display Google Map in frontend issues
- How to unset a function from a action inside a class, that is called in another class
- async upload not working when not logged
- Shortcode in Shortcode/HTML Graphics and Pictures
- How to make only the valid active page of a multilevel menu active with – “.nav li.current-menu-item a”?
- Create a new account on site B with data from the purchase of site A
- Does the namespace always have to be prefixed to the function or class when referencing callbacks in WordPress, even when they are in the same file?
- How to get post image caption by index
- How to use apply_filters() inside a plugin class?
- How to allow users to save list of posts in wordpress?
- post_exists stops working in a scheduled event
- register dependency css and js inside a plugin class
- WordPress generate images size after upload
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- Check If bootstrap last column is even or odd (using ACF custom field)
- Pagination – Previous link is not show and Next link sticks at page 2
- Trying to modify content.php
- Where do I implement this display of User Meta Data, and how to put it in a table?
- ajax polling with admin-ajax.php
- Modal opens all post IDs
- How to get php file based on URL in WordPress
- Issue encountered while trying to keep website private
- Woocommerce variation with radio button + price
- Passing parameter from the current URL to redirect to another url
- Replace Underscore (_) on Space ( )
- Using page template to fetch posts in page
- MySQL queries in WordPress
- Custom meta box save values issues – Deprecated: Function ereg() and more
- Ninja Forms – pull in some post related information
- Create and update Custom Cookie based on multiple GET and POST Values for first time visitors?
- Execute PHP code in Javascript onclick
- How to get the Woocoomerce subtotal value without tax in the hardcode? [closed]
- Populate checkboxes from array
- Display popularpost posts of the last 2 days
- Appending an ACF custom field to the page title