Switch language

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




remove_theme_support [ WordPress Function ]

remove_theme_support ( $feature )
Parameters:
  • (string) $feature the feature being added
See:
Returns:
  • (bool) Whether feature was removed.
Defined at:



Allows a theme to de-register its support of a certain feature

Should be called in the theme's functions.php file. Generally would be used for child themes to override support from the parent theme.

Source


<?php
function remove_theme_support$feature ) {
    
// Blacklist: for internal registrations not used directly by themes.
    
if ( in_array$feature, array( 'editor-style''widgets''menus' ) ) )
        return 
false;

    return 
_remove_theme_support$feature );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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