WordPress Code Snippets

A fresh mix of code snippets and tutorials

WP Admin link to All Options

125

The WordPress database houses more settings than those available in the Admin Area. Here’s a quick code snippet to display an “All Options” screen to view otherwise hidden data.

To see the “All Options” screen while logged in to the Admin Area, visit the following URL (Tip: replace example.com with your domain, and add the WP install directory, if needed):

http://example.com/wp-admin/options.php

As you can see, the All Options screen enables viewing of most options and editing capabilities of quite a few of them. If you find access to such settings useful, and you know for sure that other users won’t have access or mess with them, you can add a link to the screen with the following function:

Just add that code to your theme’s functions.php file and then visit the Settings menu in the Admin. There you’ll see a new link to the All Options screen, where you can view and modify settings without having to visit the database. The best part is that this is all built into WP by default, so just add the code and done.

Learn more

Digging into WordPress