Last active
August 29, 2015 14:03
-
-
Save remcotolsma/6df56136da574776763a to your computer and use it in GitHub Desktop.
WordPress admin menu post capabilities.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://gist.github.com/remcotolsma/07418d345649537fbc41 for the admin page file.