Since: 2.0
save_post_meta
Save a post’s meta
Function Definition
public function save_post_meta ( $id, $post_meta = null, $strict = false )
Source File: /pods/classes/PodsAPI.php
Parameters
Parameter | Type | Details |
---|---|---|
$id | (int) | Post ID |
$post_meta | (array) | All meta to be saved (set value to null to delete) |
$strict | (bool) | Whether to delete previously saved meta not in $post_meta |
Returns
(int) Id of the post with the meta