W3cubDocs

/WordPress

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.

Return

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

Source

File: wp-includes/taxonomy.php

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

	return $check;
}

Changelog

Version Description
5.0.0 Introduced.

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