remove_theme_mods()
remove_theme_mods()
删除当前主题的主题修改选项。
Remove theme modifications option for current theme.
返回(Return)
无返回值
源码(Source)
/** * Remove theme modifications option for current theme. * * @since 2.1.0 */ 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 ); }
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.1.0 | wp-includes/theme.php:1012 | 1 function | 4 |
remove_theme_mods() 为WP2原创文章,链接:https://www.wp2.cn/functions/remove_theme_mods/