pods_meta_save_post_<post_type>

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

Description

do_action( 'pods_meta_save_post_<post_type>', (unknown) $data, (unknown) $pod, (unknown) $id, (unknown) $groups, (unknown) $post, (unknown) $is_new_item ); 

Parameters (6)

0. $data (unknown)
The data.
1. $pod (unknown)
The pod.
2. $id (unknown)
The id.
3. $groups (unknown)
The groups.
4. $post (unknown)
The post.
5. $is_new_item (unknown)
The is new item.

Usage

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

Defined (1)

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

/classes/PodsMeta.php  
  1. do_action( "pods_meta_save_post_{$post->post_type}", $data, $pod, $id, $groups, $post, $is_new_item );