Core Function
View Source on Trac ↗ require_if_theme_supports()
require_if_theme_supports( mixed $feature, mixed $file ) Checks a theme's support for a given feature before loading the functions which implement it.
Parameters 2 required
| Name / Type | Description |
|---|---|
| string | $feature The feature being checked. See add_theme_support() for the list of possible values. Required |
| $file string | Path to the file. Required |
Return Value
(bool)
True if the active theme supports the supplied feature, false otherwise.
Function Information
Since Version
2.9.0
Source File
wp-includes/theme.php
Advertisement