Action hook for custom tax edit

So, i have a function in my template file functions.php which cache a search form that contain a custom taxonomie terms. I want to flush cache (or delete one cache group) when I add/delete/edit terms of a specific taxonomie.

Is it possible? maybe with do_action, but for which hook?
thx

2 s
2

Look at wp-includes/taxonomy.php. The actions are:

do_action( "create_term",       $term_id, $tt_id, $taxonomy );
do_action( "created_term",      $term_id, $tt_id, $taxonomy );
do_action( "edited_term",       $term_id, $tt_id, $taxonomy );
do_action( 'delete_term',       $term,    $tt_id, $taxonomy, $deleted_term );
do_action( "create_$taxonomy",  $term_id, $tt_id );
do_action( "created_$taxonomy", $term_id, $tt_id );
do_action( "edited_$taxonomy",  $term_id, $tt_id );
do_action( "delete_$taxonomy",  $term,    $tt_id, $deleted_term );

Leave a Comment