wp_check_term_meta_support_prefilter( mixed $check ): mixed

In this article

Aborts calls to term meta if it is not supported.

Parameters

$checkmixedrequired
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

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

	return $check;
}

Changelog

VersionDescription
5.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.