wp_check_site_meta_support_prefilter

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

wp_check_site_meta_support_prefilter: 这是一个过滤器钩子,用来增加对网站元数据的支持。它可以用来扩展WordPress网站的自定义元数据。

如果不支持网站元,则不支持调用网站元。

function wp_check_site_meta_support_prefilter( $check ) {
	if ( ! is_site_meta_supported() ) {
		/* translators: %s: Database table name. */
		_doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.1.0' );
		return false;
	}

	return $check;
}

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 18:32:58

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

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

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