W3cubDocs

/WordPress

delete_meta( int $mid )

Delete post meta data by meta ID.

Description

Parameters

$mid

(int) (Required)

Return

(bool)

Source

File: wp-admin/includes/post.php

function delete_meta( $mid ) {
	return delete_metadata_by_mid( 'post', $mid );
}

Changelog

Version Description
1.2.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/delete_meta