wp_check_site_meta_support_prefilter() WordPress Function

The wp_check_site_meta_support_prefilter() function is used to check whether a site supports the given site meta feature. This function is called before the site meta feature is registered. If the site does not support the feature, the feature will not be registered.

wp_check_site_meta_support_prefilter( mixed $check ) #

Aborts calls to site meta if it is not supported.


Parameters

$check

(mixed)(Required)Skip-value for whether to proceed site meta function execution.


Top ↑

Return

(mixed) Original value of $check, or false if site meta is not supported.


Top ↑

Source

File: wp-includes/ms-site.php

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;
}


Top ↑

Changelog

Changelog
VersionDescription
5.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.