Deletes a post meta field for the given post ID.

delete_post_meta( int , string , mixed = ” )
Parameters

(int) (Required) Post ID.

(string) (Required) Metadata name.

(mixed) (Optional) Metadata value. If provided, rows will only be removed that match the value. Must be serializable if non-scalar.

Default value: ”

Return
(bool) True on success, false on failure.

Leave a Comment

Your email address will not be published.