Created
June 6, 2012 15:26
-
-
Save habibmac/2882625 to your computer and use it in GitHub Desktop.
WP: Enable hidden admin feature displaying ALL site settings
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
// CUSTOM ADMIN MENU LINK FOR ALL SETTINGS | |
// This little piece of code does something pretty cool. It will add an additional option to your settings menu with a link to "all settings" which will show you a complete list of all the settings you have within your database related to your wordpress site. The code below will only made this link visible to an admin user and hide it for all other users. | |
function all_settings_link() { | |
add_options_page(__('All Settings'), __('All Settings'), 'administrator', 'options.php'); | |
} | |
add_action('admin_menu', 'all_settings_link'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment