A WordPress-centric search engine for devs and theme authors



wp_check_term_meta_support_prefilter ›

Since5.0.0
Deprecatedn/a
wp_check_term_meta_support_prefilter ( $check )
Parameters:
  • (mixed) $check Skip-value for whether to proceed term meta function execution.
    Required: Yes
Returns:
  • (mixed) Original value of $check, or false if term meta is not supported.
Defined at:
Codex:

Aborts calls to term meta if it is not supported.



Source

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

	return $check;
}