require_if_theme_supports
require_if_theme_supports ( $feature, $file )
Parameters:- (string) feature The feature being checked. See add_theme_support() for the list of possible values.
- (string) file Path to the file.
Returns:- (bool) True if the active theme supports the supplied feature, false otherwise.
Defined at: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Checks a theme's support for a given feature before loading the functions which implement it.