wp_check_site_meta_support_prefilter()
Aborts calls to site meta if it is not supported.
No Hooks.
Return
Mixed
. Original value of $check, or false if site meta is not supported.
Usage
wp_check_site_meta_support_prefilter( $check );
- $check(mixed) (required)
- Skip-value for whether to proceed site meta function execution.
Notes
- Global. wpdb. $wpdb WordPress database abstraction object.
Changelog
Since 5.1.0 | Introduced. |
wp_check_site_meta_support_prefilter() wp check site meta support prefilter code WP 6.7.1
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; }