Last active
February 25, 2016 10:08
-
-
Save iamjoshellis/e6ca9d92530244b1bd6a to your computer and use it in GitHub Desktop.
Fixes WP Page Number capabilities roles.
This file contains hidden or 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
// Remove the default plugin settings | |
remove_action('admin_menu', 'wp_page_numbers_add_to_menu'); | |
// Overide the the settings with the correct capability 'administrator' instead of numerical value | |
function overide_wp_page_numbers_add_to_menu() { | |
add_submenu_page('options-general.php', 'WP Page Numbers Options', 'Page Numbers', 'administrator', __FILE__, 'wp_page_numbers_settings'); | |
} | |
// Apply the settings | |
add_action('admin_menu', 'overide_wp_page_numbers_add_to_menu'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment