Since: 2.0
save_post
Save a post and it’s meta
Function Definition
public function save_post ( $post_data, $post_meta = null, $strict = false, $sanitized = false )
Source File: /pods/classes/PodsAPI.php
Parameters
Parameter | Type | Details |
---|---|---|
$post_data | (array) | All post data to be saved (using wp_insert_post / wp_update_post) |
$post_meta | (array) | (optional) All meta to be saved (set value to null to delete) |
$strict | (bool) | (optional) Whether to delete previously saved meta not in $post_meta |
$sanitized | (bool) | (optional) Will unsanitize the data, should be passed if the data is sanitized before sending. |
Returns
(mixed|void)