remove_theme_mods()
最后更新于:2021-11-27 21:45:15
remove_theme_mods()Removes theme modifications option for current theme.
源文件
文件: gc-includes/theme.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 = gc_get_theme()->get( 'Name' );
}
delete_option( 'mods_' . $theme_name );
}