2017 © Pedro Peláez
 

wordpress-plugin wp-content-menu

Adds a content menu to WordPress admin

image

frozzare/wp-content-menu

Adds a content menu to WordPress admin

  • Tuesday, February 21, 2017
  • by fredrikforsmo
  • Repository
  • 1 Watchers
  • 7 Stars
  • 293 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

Content menu

Build Status No Maintenance Intended, (*1)

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., (*2)

Both post and page will be moved to content menu by default and can be unmoved by content_menu_post_types filter., (*3)

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., (*4)

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., (*5)

// 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., (*6)

add_filter( 'content_menu_add_new_item_label', function ( $label ) {
  return 'Add New';
} );

Disable content menu for users:, (*7)

add_filter( 'content_menu_user_allowed', function ( $allowed, $user ) {
  return false;
}, 10, 2 );

Screenshots

, (*8)

, (*9)

Contributing

Everyone is welcome to contribute with patches, bug-fixes and new features., (*10)

License

MIT © Fredrik Forsmo, (*11)

The Versions

21/02 2017

dev-master

9999999-dev https://github.com/frozzare/wp-content-menu

Adds a content menu to WordPress admin

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin wordpress admin content menu

14/02 2017

v1.0.4

1.0.4.0 https://github.com/frozzare/wp-content-menu

Adds a content menu to WordPress admin

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin wordpress admin content menu

23/01 2017

v1.0.3

1.0.3.0 https://github.com/frozzare/wp-content-menu

Adds a content menu to WordPress admin

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin wordpress admin content menu

23/01 2017

v1.0.2

1.0.2.0 https://github.com/frozzare/wp-content-menu

Adds a content menu to WordPress admin

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin wordpress admin content menu

16/01 2017

v1.0.1

1.0.1.0 https://github.com/frozzare/wp-content-menu

Adds a content menu to WordPress admin

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin wordpress admin content menu

25/11 2016

v1.0.0

1.0.0.0 https://github.com/frozzare/wp-content-menu

Adds a content menu to WordPress admin

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin wordpress admin content menu