delete_post_meta_by_key
delete_post_meta_by_key ( $post_meta_key )
Parameters:- (string) post_meta_key Key to search for when deleting.
Returns:- (bool) Whether the post meta key was deleted from the database.
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Deletes everything from post meta matching the given meta key.