Switch language

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




remove_theme_mods [ WordPress Function ]

remove_theme_mods ( No parameters )
Defined at:



Remove theme modifications option for current theme.

Source


<?php
function remove_theme_mods() {
    
delete_option'theme_mods_' get_option'stylesheet' ) );

    
// Old style.
    
$theme_name get_option'current_theme' );
    if ( 
false === $theme_name )
        
$theme_name wp_get_theme()->get('Name');
    
delete_option'mods_' $theme_name );
}
?>

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