WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/require if theme supports

Contents

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

(boolean) 
This function returns a boolean (true|false).

Examples

Notes

Change Log

Since: 2.9.0

Source File

require_if_theme_supports() is located in wp-includes/theme.php.

Related

See also index of Function Reference and index of Template Tags.