Wordpress Snippets

Add link to All Options in WordPress Admin Settings

WordPress have a secret options section that contains all core WordPress settings on one single page.

Here’s a quick code snippet to display an “All Options” page to view otherwise hidden data.

Just add that code to your theme’s functions.php file and then visit the settings menu in the WordPress admin panel. There you’ll see a new link to the “All Options” page.

// add link for all options/settings in WordPress admin
function wcs_add_all_options_link() {
    add_options_page( __('All Options'), __('All Options'), 'administrator', 'options.php' );
}
add_action( 'admin_menu', 'wcs_add_all_options_link' );

Hire Us. Or just say Hi!
Need a job? Apply to get one.