Websnippetz

Get cool snippets on php, css, jQuery, Magento and wordpress

WordPress hidden options in admin side bar menu

This little piece of code does something pretty cool. This function will add an additional option to your settings menu. It 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');

Another method

you can simply go to the options page with this URL domain.com/wp-admin/options.php to access wordpress hidden options.

karthi s

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: