Function Reference/require if theme supports
Description
Checks a theme's support for a given feature before loading the functions which implement it.
Usage
<?php require_if_theme_supports( $feature, $include ) ?>
Parameters
- $feature
- (string) (required) the feature being checked
- Default: None
- $include
- (string) (required) the file containing the functions that implement the feature
- Default: None
Return Values
- (void)
- This function does not return a value.
Examples
Notes
Change Log
Since: 2.9.0
Source File
require_if_theme_supports() is located in wp-includes/theme.php.
Related