What you’re looking for are the create_$taxonomy
, edit_$taxonomy
and delete_$taxonomy
hooks. $taxonomy
is, of course, your taxonomy name.
<?php
add_action( 'create_your_tax', 'wpse32510_create', 10, 2 );
funciton wpse32510_create( $term_id, $tt_id )
{
// do stuff
}
There’s also create_term
, edit_term
and delete_term
.
Best place to find hooks: http://adambrown.info/p/wp_hooks/
Related Posts:
- How to get all taxonomies of a post type?
- Renaming Custom Post Types and Taxonomies
- How to enqueue scripts on custom post add/edit pages?
- get_terms by custom post type
- remove custom post type permalink
- Displaying the Taxonomy and a Queried Term on a taxonomy.php page?
- Permalinks for a custom post type – with a page template (custom query) and taxonomy archive
- Best approach to allow front-end display of posts’ reviewers?
- WordPress add taxonomies/terms list as a menu in archive page
- Custom Taxonomy is disabled on Edit page
- Override “Parent” input for custom taxonomy
- Listing Custom Post Post from certain category
- do action inside a class is not working
- get children from current variable (taxonomy) via shortcode
- Filter wp_dropdown_categories Per Post Type
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- Related posts by taxonomy [duplicate]
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Custom Post Type parent slug as menu item
- Sorting on Taxonomy in archive page
- Create an additional template page for every term taxonomy
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Simple term-archive-linked Taxonomy Entry output
- List all posts from custom post type by taxonomy
- Taxonomy count per Post type
- Displaying taxonomy icon outside archive page
- Custom Post Type Categories Not Maintaining URL structure any more
- Custom Search not working
- Custom post type post taxonomies
- Show all post of a taxonomy with one specific term not working
- Best way to structure article and issue relationship for CPT
- Taxonomy Grid Archive Help?
- Connecting multiple post types? Or linking “News” posts with “Game” posts how?
- Custom Post Type used for FAQs Accordion
- Sort by Custom Post Type (Multiple Loop)
- Archive templates based on taxonomies
- Query Distinct Taxonomies of Custom Post Type
- Show taxonomies from specific CPT
- Using a Taxonomy in Two Spots in a WordPress Post
- insert a taxonomy for a custom post type
- How to display elements of different post types?
- Custom post type URL returns 404 error page
- category_name not working in WP_Query
- Problems with custom post type and hierarchical permalinks
- using post_type with meta_query
- How can I set up the URL for a category archive for a custom post type?
- What is the proper way implement a global $wp_rewrite?
- How to display only taxonomies of custom post type in a page?
- List a custom post type’s posts ordered by nested custom taxonomy
- Custom Post Type Template based on Taxonomy
- Check if taxonomy is attached to at least one post in a post-type
- How to make an admin create/edit post page to look like taxonomy page?
- Looping taxonomy in taxonomy?
- Author template – separate custom post type by custom taxonomy term for $curauth
- Dynamically change post_parent in every page load?
- Custom Post Type order Title ASC
- Custom posts and custom taxonomies for many products and categories?
- custom post type tags
- Create action running on trashed_post hook to modify post_meta value
- Structure of custom post type / taxonomy?
- get_the_term_list() wanting to loop through the returned values
- List custom taxonomy terms
- Displaying child taxonomies
- Custom post type functions.php if statement on action
- How do i get the taxonomy term name on the CPT archive page?
- Single and Archive Pages with Custom Post Type
- Query multiple post of which one by taxonomy
- Echo post count of CPT with current taxonomy
- Sharing a custom taxonomy – No posts?
- See the process of creating a taxonomy and tell me where I made a mistake
- Display associated taxonomy child name on single CPT page
- show only one category posts in admin
- Issue On Listing Woocommerce Parent Tag List
- Get all active posts that are tied to a custom taxonomy for a custom post type
- How to add to taxonomies to a post type
- Filtering custom post types using category taxonomy
- Is there a function that replace category name with a icon?
- Taxonomy listing issue – does not display how I would like
- Show custom category archive as front page and remove taxonomy slug from urls
- Is it possible for post and custom post type to share a category base slug?
- custom taxonomy not return in the code
- How do I get parameters from the URL?
- How can I rename custom taxonomy if multiple custom post type have the same taxonomy name?
- Taxonomy Archive URL + Template
- Show only taxonomy types terms associated with a custom post type in WordPress PHP
- Passing total post count to javascript
- Taxonomy term archive claims there are no posts, but there are. How to resolve?
- Get a custom post type’s taxonomy type term names displayed as checkboxes and filter
- Category display using conditions
- How to display posts from home page in blogs in category wise
- Separate archive template to show posts and CPT by same category/taxonomy
- How to get taxonomy category in permalink for each taxonomy OR How to give a parent page to a given taxonomy?
- How to list custom taxonomy terms without the hyperlinks?
- Add a post when another post type is inserting
- One custom taxonomy with unique sets of labels for two post types?
- How to Filter the Custom term loop based on dropdown
- How to change default taxonomy for CPT only (not posts)
- Add taxonomy or category slug to custom post types URL
- How to determ a custom post type url?
- Custom Taxonomy archive with url parameters