W3cubDocs

/WordPress

wp_check_site_meta_support_prefilter( mixed $check )

Aborts calls to site meta if it is not supported.

Description

Parameters

$check

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

Return

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

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

Changelog

Version Description
5.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_check_site_meta_support_prefilter