The Pods - Custom Content Types and Fields pods meta save taxonomy hook.


do_action( 'pods_meta_save_taxonomy_<taxonomy>', (unknown) $data, (unknown) $pod, (unknown) $id, (unknown) $groups, (unknown) $term_id, (unknown) $term_taxonomy_id, (unknown) $taxonomy, (unknown) $is_new_item ); 

Parameters (8)

0. $data (unknown)
The data.
1. $pod (unknown)
The pod.
2. $id (unknown)
The id.
3. $groups (unknown)
The groups.
4. $term_id (unknown)
The term id.
5. $term_taxonomy_id (unknown)
The term taxonomy id.
6. $taxonomy (unknown)
The taxonomy.
7. $is_new_item (unknown)
The is new item.


To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'pods_meta_save_taxonomy_{$taxonomy}', $data, $pod, $id, $groups, $term_id, $term_taxonomy_id, $taxonomy, $is_new_item ); 
The following example is for adding a hook callback.
  1. // define the pods_meta_save_taxonomy_<taxonomy> callback 
  2. function action_pods_meta_save_taxonomy_taxonomy( $data, $pod, $id, $groups, $term_id, $term_taxonomy_id, $taxonomy, $is_new_item ) { 
  3. // make action magic happen here... 
  4. }; 
  6. // add the action 
  7. add_action( "pods_meta_save_taxonomy_{$taxonomy}", 'action_pods_meta_save_taxonomy_taxonomy', 10, 8 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "pods_meta_save_taxonomy_{$taxonomy}", 'action_pods_meta_save_taxonomy_taxonomy', 10, 8 ); 

Defined (1)

The action is defined in the following location(s).

  1. do_action( "pods_meta_save_taxonomy_{$taxonomy}", $data, $pod, $id, $groups, $term_id, $term_taxonomy_id, $taxonomy, $is_new_item );