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:

Description

Checks a theme's support for a given feature before loading the functions which implement it.

Related Functions

remove_theme_support, _remove_theme_support, current_theme_supports, get_theme_support, add_theme_support

Top Google Results

User discussions

wpseek mobile