Uses
| Uses | Description |
|---|---|
| wp-includes/theme.php: current_theme_supports() | Checks a theme’s support for a given feature. |
Checks a theme’s support for a given feature before loading the functions which implement it.
(string) (Required) The feature being checked. See add_theme_support() for the list of possible values.
(string) (Required) Path to the file.
(bool) True if the current theme supports the supplied feature, false otherwise.
File: wp-includes/theme.php
function require_if_theme_supports( $feature, $include ) {
if ( current_theme_supports( $feature ) ) {
require $include;
return true;
}
return false;
} | Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/require_if_theme_supports