I found the solution.
addFilter( 'blocks.registerBlockType ) needs to be called before the call to registerBlockType.
Related Posts:
- Hide gutenberg option blocks
- Disable block from editor based on post type
- WordPress v5.0.3 Gutenberg & JS error “Uncaught SyntaxError: missing ) after argument list”
- Gutenberg gallery hook errors
- What is the best filter where to use register_block_type?
- @wordpress/hooks use to add actions/filters within multiple plugin
- Is it possible to switch Gutenberg’s editor styles when document settings change?
- How do I run an action after a featured image has been selected in the Gutenberg editor?
- WordPress How to reorder Page/Post Settings
- How To Apply Different Styles To All Blocks Based on Post Meta Value?
- getSaveContent.extraProps hook for core/post-title doesn’t add new attributes on to the frontend
- How to set Post ID from context to an attribute in child block of Gutenberg Query Loop
- Creating my own “recent blog posts” static Gutenberg block, can’t use react hooks in the frontend
- The enqueue_block_assets is changing the styles of the editor interface
- Unable to trigger a frontend @wordpress/hooks action
- Replacing specific Gutenberg blocks
- How to know what functions are hooked to an action/filter?
- How do I implement the WordPress Iris picker into my plugin on the front-end?
- What is “all” in isset($wp_filter[‘all’])
- Please explain how these hooks work
- Hook ‘wp_enqueue_scripts’ priority has no effect
- Hook *after* user password change?
- Does anyone have a visual breakdown of core hooks and when they are fired?
- The ‘user_has_cap’ hook seems to take two page loads to trigger
- How and where can we request new WordPress hooks to be added?
- WordPress Admin Tooltip hooks
- Wp_update_post: Infinite loop even with remove_action solution, OOP
- RSS Feed Custom Title?
- Detect type of post status transition
- hook for lostpassword form
- What do the args for Gutenberg subpackage “hooks” function “doAction” mean?
- How and why can a hook call itself without causing recursion?
- Is This A Correct Example Usage Of current_filter()?
- Seeking Hook Whenever a Custom Taxonomy Term Has Been Added
- How can i trigger an action manually?
- Can I trigger the publish_post hook by using wp_insert_post?
- WooCommerce New customer email Hook? [closed]
- admin_notices not working in post editor
- How to detect when a user changes their name?
- How to check what kind of saving it is?
- Override wp_delete_post and move to trash instead for custom post type
- How do I grab specific posts (by post id) and display the title, featured image, and excerpt?
- Empty Super Cache programmatically (with ACF action) [closed]
- Hook all http requests
- Setting Cookie with init hook causes ‘header already sent’
- Is there an “Add Page” hook?
- How To Make Sure That My Action Hook Executes Last
- Does update_comment_meta hook exists?
- how to determine how many and what kind of arguments are passed to hooks
- Can not set custom title on some WordPress setups
- BuddyPress User Profile Menu
- Checking post format during xmlrpc_publish_post
- What’s the difference between “wp” and “wp_loaded”?
- WordPress capabilities and restricted categories access
- How to use custom form on add_meta_boxes callback
- schedule event in class oriented plugin
- How can I find the hook I need to rewrite a function?
- Displaying list of cities according to the selected state. Using the WordPress hook
- Removing parent theme action on pluggable function not working
- Removing a Filter
- Which action hook should I use to intercept a form upon submission?
- Would there be anything stopping me from removing both wp_head and wp_footer?
- Where Are Hooks?
- WordPress wp_loaded action hook
- useSelect second parameter
- How to cancel an action hooked to untrash_post? or any hook
- Modify Notification Message When Profile Updated
- WordPress plugin activation, deactivation and uninstall hook not being triggered
- Hook for inserting?
- How to stop WordPress from updating the post meta
- Can an RSS item be altered with a hook?
- Block Update Profile Errors
- Thickbox ‘tb_unload’ function being called twice
- How to remove a meta description or other contents
- Hooking save_post breaks check for term in added_term_relationship hook?
- Restrict editing of post type to list stored in user meta
- Delay action unltil the untill previous (hoocked) action is completed
- Rewrite the search page to use an appended slug + parameter
- Trigger function on Remove block or add new block in Gutenberg JavaScript
- What is the hook to remove a menu items group from Appearance > Menus column Add menu items
- Add stuff above header edit form
- do_action not working in loop
- add_action doesn’t work for my function
- Add HTML code before the title of the Tag page
- WP_mail() Issue. Duplicate emails if $_GET[‘A’] == email
- trying to locate the correct file to edit my internal linking anchor tags
- Can add_image_size be added earlier
- Hook to change Author Info
- Send email to post author 1 day before his project ends
- can’t access dashboard and showing forbidden page
- Query author’s posts & posts that have author’s id as meta value
- admin_post hook not working
- What is meaning of BEFORE and AFTER in this hook name?
- How to display before H1 Title
- WP: Override/update the_content from database with the publicly echo the_content
- What is the equivalent hook for both admin_head() and wp_head() combined, if any?
- Search WordPress Hook for completed Elementor Update
- How to filter the URL of thumbnail size in the Media Grid and admin pages
- How to check if we are in the init hook?
- Hook to Use Second Field Before Fallback