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); 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.