Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Last active Aug 29, 2015
Embed
What would you like to do?
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

remcotolsma commented Jun 30, 2014

Loading

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