wp_check_term_meta_support_prefilter

函数
wp_check_term_meta_support_prefilter ( $check )
参数
  • (mixed) $check Skip-value for whether to proceed term meta function execution.
    Required:
返回值
  • (mixed) Original value of $check, or false if term meta is not supported.
定义位置
相关方法
wp_check_site_meta_support_prefilterwp_render_elements_support_styleswp_customize_support_scriptis_site_meta_supportedwp_render_layout_support_flag
引入
5.0.0
弃用
-

wp_check_term_meta_support_prefilter: 这是一个过滤器钩子,用于增加对术语元数据的支持。它可以用来用自定义元数据扩展WordPress的分类系统。

如果不支持术语元,则放弃对它的调用。

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

	return $check;
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 21:33:01

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: