Enable Hidden Admin Feature Displaying ALL Site Settings

by Ataul Ghani

Disclosure

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.

// CUSTOM ADMIN MENU LINK FOR ALL SETTINGS
function all_settings_link() {
add_options_page(__('All Settings'), __('All Settings'), 'administrator', 'options.php');
}
add_action('admin_menu', 'all_settings_link');

Share on:

Disclosure: This post may contain affiliate links or paid partnerships. We may earn a commission if you click a link and make a purchase, at no extra cost to you. See our disclosure for more info.
Photo of author
Written by Ataul Ghani

2 thoughts on “Enable Hidden Admin Feature Displaying ALL Site Settings”

Leave a Comment