diff --git a/packages/editor/src/components/commands/index.js b/packages/editor/src/components/commands/index.js index b4b9c05db256d7..381f07e681baeb 100644 --- a/packages/editor/src/components/commands/index.js +++ b/packages/editor/src/components/commands/index.js @@ -254,6 +254,18 @@ function useEditorCommandLoader() { } ); } + commands.push( { + name: 'core/drafts', + label: __( 'Pages/Drafts' ), + keywords: [ 'drafts' ], + icon: edit, + callback: ( { close } ) => { + close(); + window.location.href = + '/wp-admin/site-editor.php?postType=page&layout=list&activeView=drafts'; + }, + } ); + return { commands, isLoading: false,