WordPress开发者和主题制作者的搜索引擎



wp_check_term_meta_support_prefilter ›

Since5.0.0
已弃用n/a
wp_check_term_meta_support_prefilter ( $check )
参数:
  • (mixed) $check Skip-value for whether to proceed term meta function execution.
    Required: Yes
返回:
  • (mixed) Original value of $check, or false if term meta is not supported.
定义在:
文档:

Aborts calls to term meta if it is not supported.



源码

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

	return $check;
}