Content menu releases
Adds a content menu to WordPress admin
by Fredrik Forsmo · github.com/frozzare/wp-content-menu · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/frozzare/wp-content-menu/archive/refs/heads/master.zipReadme
Content menu
Adds a content menu to WordPress admin where all your post types that are used for content can live, when doing this the post type configured to use content menu will be removed from the admin menu and if you have a lot of post types you will see a more clean admin menu than before.
Both post and page will be moved to content menu by default and can be unmoved by content_menu_post_types filter.
Content menu will only have submenu items when a post type is selected so you can see and use the submenu items for that post types, as you can see in the second screenshot.
Installation
composer require frozzare/wp-content-menu
Usage
To move your post types into content menu you can set content_menu to true in register_post_type or use content_menu_post_types filter.
// With `register_post_type`
register_post_type( 'book', [
'content_menu' => true
] );
// With the filter.
add_filter( 'content_menu_post_types', function ( $post_types ) {
return ['page', 'post', 'book']
} );
You can modify Add New Book label by content_menu_add_new_item_label filter.
add_filter( 'content_menu_add_new_item_label', function ( $label ) {
return 'Add New';
} );
Disable content menu for users:
add_filter( 'content_menu_user_allowed', function ( $allowed, $user ) {
return false;
}, 10, 2 );
Screenshots


Contributing
Everyone is welcome to contribute with patches, bug-fixes and new features.
License
MIT © Fredrik Forsmo
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v1.0.4 | Feb 14, 2017 |
| v1.0.3 | Jan 23, 2017 |
| v1.0.2 | Jan 23, 2017 |
| v1.0.1 | Jan 16, 2017 |
| v1.0.0 | Nov 25, 2016 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.