(See codex) update_post_meta() 呼叫
update_metadata(\'post\', $post_id, $meta_key, $meta_value, $prev_value);
此函数
is here. 还有很多挂钩/过滤器:
(在“post”示例中,$meta_type=\'post\')
更新元数据之前:
update_{$meta_type}_metadata (
here)
Filter-如果返回“null”以外的任何内容,元数据将不会保存
update_{$meta_type}_meta (here) Action
元数据更新后:
updated_{$meta_type}_meta (
here)
Actionupdated_post_meta (here) Action
-仅适用于帖子
采取的所有行动($meta_id, $object_id, $meta_key, $meta_value) 作为参数。过滤器过滤a$check 并将上述内容作为附加参数。