该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Dashboard Editor

描述

This plugin allows you to add whatever you want to the WordPress dashboard through PHP and HTML even Sidebar Widgets. You can also wipe the entire dashboard or individually remove some of the more irritating sections like the Dev news, Planet WordPress and the getting started section.

In WordPress 2.5, the code is cleaner, the plugin is more responsive and you can add both “real” sidebar widgets, or add “fake” ones to match the dashboard.

屏幕截图

  • A screenshot of an edited dashboard with widgets in 2.3.
  • My actual Dashboard in WP 2.5

安装

Basic Installation (If you are new to WordPress you should probably use this.):

  1. Download the zip file
  2. Unzip and upload dashboard.php to your wp-content/plugins/ folder.
  3. Go to your dashboard. There will be a new sub-menu item.
  4. Select any options you want and add any PHP or HTML code that you want to the textbox.

常见问题

How do I add Widgets?

To add a sidebar widget to your dashboard (after selecting the option from the Dashboard management page) use the code:

<?php dynamic_sidebar('admin');?>

The Admin sidebar is modified and controlled the exact same way as any other sidebar.

How do I display UserOnline stats from the WP-UserOnline plugin?

If you use the WP-UserOnline plugin you can use:

My new content doesn’t show up nicely. It is pushed to the bottom.

If you find that your new content doesn’t align nicely you can add:

      <div style="float:left; width:460px;">
           //
           //Add all other content here
           //
           </div>
Can everyone see the information I add?

Yes, you can use User Roles (See WordPress Codex). Or just use:

<?php if(current_user_can('edit_users')){ ?>
// Content you don't want people to see here
<?php } ?>
What else can I add?

Any code that can be used in a WordPress Theme can be used in the dashboard.

I’m on WordPress 2.0, but none of the settings work.

Unfortunately, the only way to get the plugin to work on 2.0.x is to completely wipe the dashboard.

贡献者及开发者

“Dashboard Editor” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Dashboard Editor”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志