Last active
December 1, 2025 15:49
-
-
Save juanmaguitar/94fc5aa510e63b75632138132d40bb4a to your computer and use it in GitHub Desktop.
New Command Palette
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wp.data.dispatch( wp.commands.store ).registerCommand( { | |
| name: 'myplugin/my-web-command-name', | |
| label: 'Go to juanma.codes', | |
| callback: ( { close } ) => { | |
| document.location.href = 'http://juanma.codes'; | |
| close(); | |
| }, | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment