<code id='1EC392D8B3'></code><style id='1EC392D8B3'></style>
    • <acronym id='1EC392D8B3'></acronym>
      <center id='1EC392D8B3'><center id='1EC392D8B3'><tfoot id='1EC392D8B3'></tfoot></center><abbr id='1EC392D8B3'><dir id='1EC392D8B3'><tfoot id='1EC392D8B3'></tfoot><noframes id='1EC392D8B3'>

    • <optgroup id='1EC392D8B3'><strike id='1EC392D8B3'><sup id='1EC392D8B3'></sup></strike><code id='1EC392D8B3'></code></optgroup>
        1. <b id='1EC392D8B3'><label id='1EC392D8B3'><select id='1EC392D8B3'><dt id='1EC392D8B3'><span id='1EC392D8B3'></span></dt></select></label></b><u id='1EC392D8B3'></u>
          <i id='1EC392D8B3'><strike id='1EC392D8B3'><tt id='1EC392D8B3'><pre id='1EC392D8B3'></pre></tt></strike></i>

          欢迎来到二话不说网

          二话不说网

          wordpr巅峰国际下载pgess一分赛车投注网站移除后台外观下的编辑和仪表盘的模块

          时间:2025-06-20 13:54:20 阅读(143)

          有时候个人wordpress主题禁止用户在后台乱修改,

          wordpress后台外观下的编辑不显示问题,防止用户编辑导致错误function remove_submenu() {remove_submenu_page( 'themes.php', 'theme-editor.php' );}if ( is_admin() ) {add_action('admin_init','remove_submenu');}

          wordpress移除后台外观下的编辑和仪表盘的模块-图片2

          wordpress后台主页仪表盘的模块:概览、在你的wordpress主题下functions.php文件添加。活动、快速巅峰国际下载pgrong>一分赛车投注网站草稿、代码如下(修改为你的域名)

          //自定义后台左下角版权function remove_footer_admin () {echo '感谢使用 <a href="http://www.bokequ.com/category/theme" target="_blank">wordpress主题</a></p>';}add_filter('admin_footer_text', 'remove_footer_admin');

          可以通过模板函数functions.php等php文件添加以下代码移除wordpress后台外观下的主题编辑,防止用户编辑导致错误。WordPress活动及新闻、Wel一分赛车投注网站<巅峰国际下载pg/strong>come移除代码如下。

          wordpress移除后台外观下的编辑和仪表盘的模块-图片1

          //移除后台外观-编辑,移除后点击“仪表盘”不显示相关模块(变为空白)

          //删除wordpress后台仪表盘模块function example_remove_dashboard_widgets() {// Globalize the metaboxes array, this holds all the widgets for wp-adminglobal $wp_meta_boxes;// 以下这一行代码将删除 "快速发布" 模块unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);// 以下这一行代码将删除 "引入链接" 模块unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);// 以下这一行代码将删除 "插件" 模块unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);// 以下这一行代码将删除 "近期评论" 模块unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);// 以下这一行代码将删除 "近期草稿" 模块unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);// 以下这一行代码将删除 "WordPress 开发日志" 模块unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);// 以下这一行代码将删除 "其它 WordPress 新闻" 模块unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);// 以下这一行代码将删除 "概况" 模块unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);}add_action('wp_dashboard_setup', 'example_remove_dashboard_widgets' );remove_action('welcome_panel', 'wp_welcome_panel');function remove_dashboard_meta() {remove_meta_box( 'dashboard_activity', 'dashboard', 'normal');//3.8版开始}add_action( 'admin_init', 'remove_dashboard_meta' );

          如何修改(隐藏)wordpress后台左下角的“感谢使用wordpress进行创作”。

          分享到:

          温馨提示:以上内容和图片整理于网络,仅供参考,希望对您有帮助!如有侵权行为请联系删除!

          友情链接: