WordPress tutorials: Admin link to all settings

Wpsnipp – Adding this to your funtions.php of your wordpress theme will provide a link to your wordpress options page. This contains fields for nearly every settings in wordpress.This hack 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. It will only make 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');

Leave a comment