unregister_term_meta() WordPress Function

The unregister_term_meta() function allows you to unregister a term meta key. This function takes two parameters: the meta key to unregister and an optional array of arguments. The arguments array can be used to specify a custom callback function to sanitize the term meta data before it is updated.

unregister_term_meta( string $taxonomy, string $meta_key ) #

Unregisters a meta key for terms.


Parameters

$taxonomy

(string)(Required)Taxonomy the meta key is currently registered for. Pass an empty string if the meta key is registered across all existing taxonomies.

$meta_key

(string)(Required)The meta key to unregister.


Top ↑

Return

(bool) True on success, false if the meta key was not previously registered.


Top ↑

Source

File: wp-includes/taxonomy.php

function unregister_term_meta( $taxonomy, $meta_key ) {
	return unregister_meta_key( 'term', $meta_key, $taxonomy );
}


Top ↑

Changelog

Changelog
VersionDescription
4.9.8Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More