📜  delete_post_meta - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:22.942000             🧑  作者: Mango

代码示例1
delete_post_meta( int $post_id, string $meta_key, mixed $meta_value = '' )
  
Deletes a post meta field for the given post ID.

You can match based on the key, or key and value. 
Removing based on key and value, will keep from removing duplicate metadata 
with the same key. It also allows removing all metadata matching the key, 
if needed.