wp_check_term_meta_support_prefilter() WordPress Function

The wp_check_term_meta_support_prefilter() function allows you to check if a plugin or theme is going to support term meta data before the plugin or theme is actually loaded. This can be useful for plugin and theme developers who want to make sure that their plugin or theme will work with the term meta data before they actually load it.

wp_check_term_meta_support_prefilter( mixed $check ) #

Aborts calls to term meta if it is not supported.


Parameters

$check

(mixed)(Required)Skip-value for whether to proceed term meta function execution.


Top ↑

Return

(mixed) Original value of $check, or false if term meta is not supported.


Top ↑

Source

File: wp-includes/taxonomy.php

function wp_check_term_meta_support_prefilter( $check ) {
	if ( get_option( 'db_version' ) < 34370 ) {
		return false;
	}

	return $check;
}


Top ↑

Changelog

Changelog
VersionDescription
5.0.0Introduced.

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