The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippet · JavaScript

Add Custom Admin Command Palette Link

Shared by Darshit Rajyaguru · June 15, 2026 · @admin_footer

97 views
1 upvote
Back to Snippets

Adds a custom command to WordPress admin Command Palette allowing quick navigation.

wp.domReady(function(){
    if ( ! wp.commands ) {
        return;
    }

    wp.commands.registerCommand(
        'custom/open-settings',
        {
            label: 'Open Theme Settings',
            callback() {
                window.location.href =
                'themes.php';
            }
        }
    );
});
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments

Proudly supported by