Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remcotolsma/6df56136da574776763a to your computer and use it in GitHub Desktop.
Save remcotolsma/6df56136da574776763a to your computer and use it in GitHub Desktop.
WordPress admin menu post capabilities.
<?php
function pronamic_custom_admin_menu() {
add_submenu_page(
'options-general.php',
__( 'Post Capabilities', 'pronamic' ),
__( 'Post Capabilities', 'pronamic' ),
'manage_options',
'pronamic_custom_post_capabilities',
'pronamic_custom_page_permissions'
);
}
add_action( 'admin_menu', 'pronamic_custom_admin_menu' );
function pronamic_custom_page_permissions() {
include 'admin-page-permissions.php';
}
@remcotolsma
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment