WordPress 技巧:禁用后台主题切换 | 周良博客
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <?php Plugin Name: 禁用 WordPress 主题切换 Plugin URI: http://www.aips.me/wordpress-disable-background-theme-switching.html Description: WordPress 技巧:禁用 WordPress 主题切换 Version: 0.1 Author: xiaowudesign Author URI: http://www.aips.me/ add_action( 'admin_init', 'wplg_lock_theme' ); function wplg_lock_theme() { global $submenu; unset( $submenu['themes.php'][5] ); unset( $submenu['themes.php'][15] ); } ?> |