関数 remove_theme_mod()
2014/12/17
関数 remove_theme_mod()
定義ファイル :/blog/wp-includes/theme.php 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | function remove_theme_mod( $name ) { $mods = get_theme_mods(); if ( ! isset( $mods[ $name ] ) ) return; unset( $mods[ $name ] ); if ( empty( $mods ) ) return remove_theme_mods(); $theme = get_option( 'stylesheet' ); update_option( "theme_mods_$theme", $mods ); } |