How to refresh Parent Term List after creating a new category

I want to repopulate parent terms drop down once a new category is created. At least refreshing the current page is enough. I tried to hook into “create_category” hook also. I’m using custom post types and so i changed the hook as “create_#{custom taxonomy}” and it works fine.

function refresh_page($term_id, $taxonomy_term_id){
// do some things
}
add_action(‘create_careers_cat’, ‘refresh_page’, 10, 2);

Read more here:: How to refresh Parent Term List after creating a new category

Leave a Reply

Your email address will not be published. Required fields are marked *