Today, we’ll introduce a little piece of code that does something pretty cool and comes in handy while troubleshooting WordPress. The below code snippet will add an additional option to your settings menu called "all settings" that can show you a complete alphabetical list of all the hidden settings you have within your wp_options table.

 

Display hidden features in Wordpress settings tab

The best thing is that the below code will enable you to adjust any of the settings and save it as per your requirement from the WordPress dashboard itself, with the exception of those that WordPress stores as serialized data.  In addition, the “All settings” tab can only be viewed by the admin users. 

Warning: This tutorial is only for advanced WordPress users. Please don’t try this if you’re not sure what you’re doing. If something goes wrong, this can destroy your database and break your site. You’ve been warned!

Also, take a Wordpress backup before you proceed.

Add the following code to functions.php file to display hidden features in the settings tab.

// 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');

Once added, here is what the ‘all settings’ menu will look like.

wp hidden settings

The best thing is it allows you to find out if your options table needs a clean up without logging in to phpmyadmin. It also helps you to change the plugin settings that are not offered to normal users.

Download the list of 101 WordPress tricks every blogger should know

101 WordPress tricks

Click here to Download Now

Featured On

Inc Magazine Logo  

Sitepoint logo  

CSS Tricks logo   

webdesignerdepot logo   WPMU DEV logo   

and many more!

Where are we hosted?

This site is proudly powered by FAST VPS InMotion Servers and given an insane speed thanks to MaxCDN!

Web Hosting MaxCDN - Speed up your website

Advertise on CollectiveRay.com

CollectiveRay (formerly known as DART Creations) is interested in developing partnerships with mutual benefit. If you like the stuff we publish and would like to develop a relationship, we'd be happy to hear from you. Go on - drop us a line - we'd love to hear from you :-)

New! DIVI 3.1 WordPress Template + PageBuilder

You'll surely create a perfect website with Divi 3.1!

Get an exclusive 20% OFF for CollectiveRay visitors until

Divi 3

 

The Outstanding HungryJPEG Bundles

AWESOMENESS! Bundles of premium font + graphic packs at more than 96% OFF!  Get this bundle for just $29 - This month ONLY!

The Hungry JPEG Awesome font bundles

 

Disclosure: CollectiveRay is funded personally out of pure passion for helping people working with websites. We do however generate some income through recommendations of products. This means if you click on a link and purchase an item we link to, we will receive a small sum out of that sale.

who are we?

CollectiveRay is run by David Attard - working in and around the web design niche for more than 12 years, we provide actionable tips for people who work with and on websites. We also run DronesBuy.net - a website for drone hobbyists.

David attard

Follow us on Social

Follow us on Facebook   Follow us on Google+   Subscribe to our RSS Feed   Follow us on Twitter