-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Describe the bug
I am attempting to follow this guide to add a button to the menu item toolbar:
https://developer.wordpress.org/block-editor/tutorials/format-api/1-register-format/
It appears that the "enqueue_block_editor_assets" action is not fired on the /wp-admin/admin.php?page=gutenberg-navigation page.
To reproduce
- Add the following to a plugin or your theme:
function my_custom_format_enqueue_assets_editor() {
die("got here");
}
add_action( 'enqueue_block_editor_assets', 'my_custom_format_enqueue_assets_editor' );
- Visit /wp-admin/admin.php?page=gutenberg-navigation
Expected behavior
I would expect to see the message "got here", but I do not as the action is not fired on the new Navigation page. If I edit a page or post I see the "got here" message.
Editor version:
- WordPress version: 5.4
- Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? Gutenberg plugin
- If the Gutenberg plugin is installed, which version is it? 7.9
Metadata
Metadata
Assignees
Labels
[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended