unregister_meta_key

SummerySummery

Unregisters a meta key from the list of registered keys.

Syntax

unregister_meta_key( string $object_type, string $meta_key, string $object_subtype = '' )

ParametersParameters

$object_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_key

(string) (Required) Metadata key.

$object_subtype

(string) (Optional) The subtype of the object type.

Default value: ''

ReturnReturn

(bool) True if successful. False if the meta key was not registered.

SourceSource

File: wp-includes/meta.php


			

ChangelogChangelog

Changelog
Version Description
4.9.8 The $object_subtype parameter was added.
4.6.0 Introduced.
Scroll to Top