1 2 3 4 5 6 7 |
add_action('create_product_cat', 'do_something_on_term_change'); add_action('edit_product_cat', 'do_something_on_term_change'); add_action('delete_product_cat', 'do_something_on_term_change'); function do_something_on_term_change() { //do something here } |