delete_metadata_by_mid

SummerySummery

Deletes metadata by meta ID.

Syntax

delete_metadata_by_mid( string $meta_type, int $meta_id )

ParametersParameters

$meta_type

(string) (Required) Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

$meta_id

(int) (Required) ID for a specific meta row.

ReturnReturn

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

SourceSource

File: wp-includes/meta.php


			

ChangelogChangelog

Changelog
Version Description
3.3.0 Introduced.
Scroll to Top