Hook into 'save custom taxonomy' like 'save_post' in WordPress Hook into 'save custom taxonomy' like 'save_post' in WordPress wordpress wordpress

Hook into 'save custom taxonomy' like 'save_post' in WordPress


To answer my own question:

This works:

function pdf_save_magazine($term_id, $tt_id, $taxonomy) {   $term = get_term($term_id, $taxonomy);   $term_slug = $term->slug;    wp_remote_get(      'http://url-that-saves-pdf.com/?print='.$term_slug,      array(         'blocking' => false,         'timeout' => 1,         'httpversion' => '1.1'      )   );}add_action( 'edit_term', 'pdf_save_magazine', 10, 3 );