delete_metadata Wordpress function


Description:

Delete metadata for the specified object.


Syntax:


Arguments:

(string) $meta_type Type of object metadata is for (e.g., comment, post, or user)
(int) $object_id ID of the object metadata is for
(string) $meta_key Metadata key
(string) $meta_value Optional. Metadata value. If specified, only delete metadata entries with this value. Otherwise, delete all entries with the specified meta_key.
(bool) $delete_all Optional, default is false. If true, delete matching metadata entries for all objects, ignoring the specified object_id. Otherwise, only delete matching metadata entries for the specified object_id.


Return Type:

(bool) True on successful delete, false on failure.


Define At:

wp-includes/meta.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/delete_metadata


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×