开发者 | majick |
---|---|
更新时间 | 2024年7月11日 07:15 |
捐献地址: | 去捐款 |
PHP版本: | 4.0.0 及以上 |
WordPress版本: | 6.5.5 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/
directory and unzip.Once you have activated the plugin you will see these changes in your WordPress Admin area: Admin Menu
A settings page is available via the Plugin Settings submenu (or the Settings submenu when the Menu module is inactive.) Configuration is also currently available via constants and filters (see below.)
Yes. Simply copy the individual module file(s) you wish to use into your /wp-content/mu-plugins/
directory. Alternatively you can also copy the entire plugin into that directory if you wish.
Modules can be disabled via te settings page or by defining any of the following constants as false
:
ADMINSANITY_LOAD_MENU
, ADMINSANITY_LOAD_BAR
, ADMINSANITY_LOAD_NOTICES
eg. define( 'ADMINSANITY_LOAD_MENU', false );
Or returning false
to any of the following value filters:
adminsanity_load_menu
, adminsanity_load_bar
, adminsanity_load_notices
eg. `add_filter( 'adminsanity_load_bar', '__return_false' );
Yes, on the plugin settings page. These features can be also disabled using constants or filters in the same way as above: | Feature | Constant | Filter | | Meta Menu Headings | ADMINSANITY_MENU_METAS | adminsanity_menu_metas | | Plugin Settings Menu | ADMINSANITY_MENU_PLUGINS | adminsanity_menu_plugins | | Expand Menu Icon | ADMINSANITY_MENU_EXPANDER | adminsanity_menu_expander | | Bar Frontend Loading | ADMINSANITY_BAR_FRONTEND | adminsanity_bar_frontend | | Bar Item Switcher | ADMINSANITY_BAR_CYCLER | adminsanity_bar_cycler | | Bar Dropdown Toggle | ADMINSANITY_BAR_DROPDOWN | adminsanity_bar_dropdown |
Yes. Although tricky, a filter for this was included in the initial proof of concept Gist for the admin menu. Simply return an array of admin menu slugs to the filter adminsanity_menu_keep_positions
and AdminSanity will attempt to keep those menu items from moving when it sorts the other items (See example in plugin code, function adminsanity_menu_keep_position_test
.) Note that depending on the menu items's initial position, this may have mixed results in where it appears in relation to the other newly rearranged menu items.