{"id":23774552,"url":"https://github.com/wpup/content-menu","last_synced_at":"2025-09-05T18:32:04.076Z","repository":{"id":62507681,"uuid":"73563571","full_name":"wpup/content-menu","owner":"wpup","description":"Adds a content menu to WordPress admin","archived":false,"fork":false,"pushed_at":"2019-12-02T14:20:21.000Z","size":26,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-20T15:44:44.740Z","etag":null,"topics":["admin","menu","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-12T16:18:41.000Z","updated_at":"2023-05-31T12:00:28.000Z","dependencies_parsed_at":"2022-11-02T13:16:18.634Z","dependency_job_id":null,"html_url":"https://github.com/wpup/content-menu","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Fcontent-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Fcontent-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Fcontent-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Fcontent-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpup","download_url":"https://codeload.github.com/wpup/content-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232052268,"owners_count":18465727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","menu","wordpress","wordpress-plugin"],"created_at":"2025-01-01T06:15:45.635Z","updated_at":"2025-01-01T06:15:46.239Z","avatar_url":"https://github.com/wpup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Content menu\n\n[![Build Status](https://travis-ci.org/wpup/content-menu.svg?branch=master)](https://travis-ci.org/wpup/content-menu)\n[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)\n\nAdds 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.\n\nBoth `post` and `page` will be moved to content menu by default and can be unmoved by `content_menu_post_types` filter.\n\nContent 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.\n\n## Installation\n\n```sh\ncomposer require frozzare/wp-content-menu\n```\n\n## Usage\n\nTo 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.\n\n```php\n// With `register_post_type`\nregister_post_type( 'book', [\n  'content_menu' =\u003e true\n] );\n\n// With the filter.\nadd_filter( 'content_menu_post_types', function ( $post_types ) {\n  return ['page', 'post', 'book']\n} );\n```\n\nYou can modify `Add New Book` label by `content_menu_add_new_item_label` filter.\n\n```php\nadd_filter( 'content_menu_add_new_item_label', function ( $label ) {\n  return 'Add New';\n} );\n```\n\nDisable content menu for users:\n\n```php\nadd_filter( 'content_menu_user_allowed', function ( $allowed, $user ) {\n  return false;\n}, 10, 2 );\n```\n\n## Screenshots\n\n![](https://cloud.githubusercontent.com/assets/14610/20240391/4ab1f8d0-a917-11e6-9994-616924b94f53.png)\n\n![](https://cloud.githubusercontent.com/assets/14610/20256173/0ce9c790-aa42-11e6-818e-8348862a252d.png)\n\n## Contributing\n\nEveryone is welcome to contribute with patches, bug-fixes and new features.\n\n## License\n\nMIT © [Fredrik Forsmo](https://github.com/frozzare)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpup%2Fcontent-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpup%2Fcontent-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpup%2Fcontent-menu/lists"}