関数 set_theme_mod()
2014/12/17
関数 set_theme_mod()
定義ファイル :/blog/wp-includes/theme.php 2
1 2 3 4 5 6 7 8 9 | function set_theme_mod( $name, $value ) { $mods = get_theme_mods(); $old_value = isset( $mods[ $name ] ) ? $mods[ $name ] : false; $mods[ $name ] = apply_filters( "pre_set_theme_mod_$name", $value, $old_value ); $theme = get_option( 'stylesheet' ); update_option( "theme_mods_$theme", $mods ); } |