WPDev.one
Core Function
View Source on Trac ↗

delete_post_meta_by_key()

delete_post_meta_by_key( mixed $post_meta_key )

Deletes everything from post meta matching the given meta key.

Parameters 1 required

Name / Type Description
$post_meta_key
string

Key to search for when deleting.

Required

Return Value

(bool)
Whether the post meta key was deleted from the database.

Function Information

Since Version
2.3.0
Source File
wp-includes/post.php
Advertisement