Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




require_if_theme_supports [ WordPress Function ]

require_if_theme_supports ( $feature, $include )
Parameters:
  • (string) $feature the feature being checked
  • (string) $include the file containing the functions that implement the feature
Defined at:



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

Source


<?php
function require_if_theme_supports$feature$include) {
    if ( 
current_theme_supports$feature ) )
        require ( 
$include );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics