You may want to try:
do_action('set_object_terms', $object_id, $terms, $tt_ids, $taxonomy, $append, $old_tt_ids);
You can find it under this Docs and the action is located at wp-includes/taxonomy.php
add_action('set_object_terms','wpse5123_set_object_terms',10,4);
function wpse5123_set_object_terms($object_id, $terms, $tt_ids, $taxonomy){
if($taxonomy == 'category'){
echo '<pre>';
print_r($terms);
echo '</pre>';
exit;
}
}
The code above isn’t tested but I think you get the point.
Related Posts:
- Send an email when custom post type category is changed
- what is the action hook code to supporting product category condition in single product page of woocommerce?
- Remove word “Category” from WooCommerce product page [closed]
- Replace category titles
- functions.php conditional tag – only show in single.php?
- Set the default category of an attachment
- Assign category from custom field on post creation and update
- How to hide category name
- Categories widget show empty?
- How to access deleted term inside delete_product_cat action
- How to hide a category or tag everywhere EXCEPT for use with get_posts
- Correct Hook/Filter to amend category choices on post edit page
- How to delete WooCommerce categories in bulk that only have one product
- Ajax Category add doesn’t update the list table custom column
- How to hook into creating a category?
- get categories the post was in and just been removed from
- How to display the category featured images [closed]
- Hook action when create new category [duplicate]
- Replace category titles inside RSS feed
- Individual rss feed entry length for categories?
- Control term order on a per-post basis
- Filter by post category in Media Library
- Changing Top Level Items into Radio Buttons in the Categories Meta Box?
- Custom post types with their own permalink structure
- How to create a widgetized sidebar for every category dynamically?
- Display the deepest child category from Category X (in loop)
- When using get_categories or similar, is it possible to filter results that contain certain Tags as well?
- Exclude subcategories from the url
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- Select category in custom query
- Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?
- Remove specific category from a post
- Search by word, category, tag, author
- How to hide certain categories in wordpress dashboard?
- How to filter archives both by category and tag?
- Resolved – category-slug.php not working after wordpress migration
- How to retain the values from dropdown category lists after wrong form submission?
- How i can let users add notes to my posts
- Single_cat_title() print the title before text
- Sort posts by post_type in category.php template
- Why would in_category only return one post in a specific category?
- Is it possible to have WordPress not recognize category URLs?
- Disallow categories from this MySQL query
- getting content from main domain to sub-domain using category and WP_Query
- editing fonts of category links from the_category() funtion
- Force a user’s posts category
- Checking for two categories in query_posts
- get_the_categories filter returns an empty array
- Show category to visitors in different name or different language without changing basic category
- How to get latest posts from each category in regular order
- limit a list of tags to one category [closed]
- How many categories can WordPress handle before performance suffers?
- Get sort order of product categories
- How to pull a list of posts in a category while exluding posts in subcategories of the category
- Exclude category from query
- How to loop custom post_type from (a) specific category(ies)?
- Display posts of certain categories to specific user roles
- How to restrict category creation to admins only while allowing editors to still pick category
- Display Related Posts by “Category” “by Author”
- Query (built in) Categories and Advanced Custom Fields?
- Change post title if post has specific category
- Filter By Category Dropdown List With Custom Taxonomies
- query_posts by category_name and custom taxonomy
- How set all posts in wordpress in one category
- Page that links to category content
- custom query for both category and pages using global $wpdb;
- url for posts for a date within a category
- Query from multiple category (and)
- Autolinking keywords in text with tags
- WP E-Commerce creating categories programmaticaly [closed]
- WP E-Commerce WPEC 3.8 Sort Categories
- Different post slug based on archive
- How do I get conditional sidebars for specific category archives and posts
- Exclude a category from block editor’s category widget
- Post does not show category wish just show latest post
- Show category in post page, that is in specific category
- Woocommerce Category Sort Dropdown
- Is there a way to ‘archive’ inactive categories?
- Getting child category id (help with improving my code)
- Assign post category to a page by selecting category from page dashboard
- Assign a class to first element in category in loop
- Different template for subcategories
- Hide category name using mod_rewrite
- Category page shows only 1 post when that post has more than 1 category?
- Assign a category to all articles
- Automatic Category selection
- How can I modify this code to iterate over an array of categories?
- DESC order not working when showing only child categories
- Search tag within category
- How do i hide categories from menus which don’t yet contain posts?
- Custom WordPress category page showing all posts rather than the specified category
- Add 1 category more to If_in_category statement
- How to include first assigned category in the post URL?
- How to get child category list post in one template?
- Call function on a single page
- Woocommerce custom taxonomy order
- Update wordpress menu with woocommerce products
- Category archive page has two URLs even when default theme is active with no active plugins
- List the category tree of all the product_cat categories
- Is there a function to modify existing previous/next post link without modifying theme files?