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
檢視更多 >