WP Manifestindependent plugin directory
manifest / admin / content-menu

Content menu WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Adds a content menu to WordPress admin

★ 8stars
1.3kcomposer installs
v1.0.4latest · 9 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wpup/content-menu/archive/refs/heads/master.zip

On Packagist as frozzare/wp-content-menu:

composer require frozzare/wp-content-menu
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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

Releases

5 releases.

Tag
Published
v1.0.4 latest
Feb 14, 2017 9 years ago
Jan 23, 2017 9 years ago
Jan 23, 2017 9 years ago
Jan 16, 2017 9 years ago
Nov 25, 2016 9 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Content menu 1.0.4 · audited by WP Registry

No security issues found.

Audited release
1.0.4
Findings
none
Worst severity
—
Content hash
35551ac73b60b44a8572601e…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.