Discover in this tutorial how to add a shortcut to the WordPress options page using code.
WordPress has an options page that allows you to view the values of the table
wp_options and even modify some of them.
By default it is hidden, that is, you can’t access it from the admin menu, which seems very reasonable to me, for security reasons, to prevent an inexperienced user to get to it.
But the truth is that knowing the URL you can access it, you just have to add /wp-admin/options.php after the URL of your website. For example: https://yourwebsite/wp-admin/options.php.
If it’s something that you find useful to have at hand you can add the link in the settings section in the WordPress desktop sidebar.
This way, when you want to check any WordPress, theme or plugin value you can do it with just one click.
Are you interested in doing this? Here are the lines of code you need:
Snippet to add a shortcut to the WordPress options page
Add this snippet to the end of the functions.php file:
It’s that easy.
Now in the sidebar of the WordPress administration you will have, within the “Settings” section, a shortcut called “Options Page” that directs to it.
Now you know how to create a shortcut to the WordPress options page.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂