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