Skip to toolbar


Called after any Pod item is saved for a specific Pod.

Usage

add_action('pods_api_post_save_pod_item_my_pod_name', 'my_post_save_function', 10, 3);

function my_post_save_function($pieces, $is_new_item, $id);

Parameters

PARAMETER TYPE DETAILS
$pieces (array)
$is_new_item (boolean)
$id (integer) ID of item being updated

Examples

Update Taxonomy With Value Of Field Related To Taxonomy

Takes the value of a single-select field ‘genre’ related to the taxonomy ‘genres’ and updates the taxonomy with the term set in the ‘genre’ field from the custom post type ‘films’.


 

Update Post Author To Current User


 

Additional Information

  • This is the last filter called in save_pod_item()
  • save_pod_item() (and thus, this filter) will only be called for WordPress objects if you have added one or more fields to the Pod.