関数 remove_theme_mods()
2014/12/17
関数 remove_theme_mods()
定義ファイル :/blog/wp-includes/theme.php 2
1 2 3 4 5 6 7 8 9 | 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 ); } |