wp_check_term_meta_support_prefilter() WordPress Function
The wp_check_term_meta_support_prefilter() function allows you to check if a plugin or theme is going to support term meta data before the plugin or theme is actually loaded. This can be useful for plugin and theme developers who want to make sure that their plugin or theme will work with the term meta data before they actually load it.
wp_check_term_meta_support_prefilter( mixed $check ) #
Aborts calls to term meta if it is not supported.
Parameters
- $check
(mixed)(Required)Skip-value for whether to proceed term meta function execution.
Return
(mixed) Original value of $check, or false if term meta is not supported.
Source
File: wp-includes/taxonomy.php
function wp_check_term_meta_support_prefilter( $check ) { if ( get_option( 'db_version' ) < 34370 ) { return false; } return $check; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |