In what way is the
Tag Cloud
block different?
That block is a dynamic block, which uses a live rendering using ServerSideRender
, and the documentation stated that “If you pass attributes to ServerSideRender
, the block must also be registered and have its attributes defined in PHP“, therefore, custom attributes for the block must be defined in PHP as well and not just JavaScript.
To fix the issue, you can use the register_block_type_args
filter to add the blockAnimationClass
attribute. E.g.
add_filter( 'register_block_type_args', 'my_add_custom_block_type_attributes' );
function my_add_custom_block_type_attributes( $args ) {
$args['attributes']['blockAnimationClass'] = array(
'type' => 'string',
'default' => '',
);
return $args;
}
Related Posts:
- Gutenberg disable the “block” tab in right sidebar
- How to change the order of HTML output of a core block?
- Gutenberg – Add align controls to a custom block
- Detect when gutenberg editor title is available in Dom after editor load
- Gutenberg Block – Post Featured Image Filter Hook
- Set default value for “Additional CSS class(es)” for specific block types
- How to pass/get data to/from the WooCommerce data-product_variations object?
- What does (10, 2) mean when used with add_filter
- Clarification on filters and hooks
- Passing Additional Parameters to add_filter Callable
- Modify WordPress Rest Api Request/Response
- How to add some custom HTML into wordpress admin bar?
- Custom theme hooks / filters – passing arguments
- How to hook wp_list_pages?
- How to make post and comment count unclickable with dashboard_glance_items hook
- How to use the_excerpt in a filter hook?
- Hook into admin post list page
- How to limit the pages displayed for choosing parent page on page attribute’s menu?
- How can I hide all posts that don’t have a thumbnail?
- How can I reliably and globally disable wptexturize?
- Customise Jetpack Publicize text
- WordPress RSS feed – filter RSS content by custom field value
- filter the_title problem in nav
- Filter the URL of next_posts_link & previous_posts_link
- Changing Gutenberg / WP block editor width only on pages, not posts or other taxonomies
- How to replace any occurence of Gravatars with a local placeholder image?
- Sensei LMS Hooks to Remove Content
- Filter Gutenberg Blocks Content
- What hook/filter can I use to add/edit/show/hide the title under (on hover) links on the table view?
- Change WordPress RSS link with filter?
- Add a header before fields added with the attachment_fields_to_edit() filter
- Hide content editor for posts after approriate date
- How do I replace a render_callback function for a block?
- Why my admin doesn’t work after adding rest_prepare_post filter?
- When to use actions and when to use filters
- add_filter to ‘woocommerce_before_main_content’ [closed]
- Editing
- Same Conditionals Not Working on Two Different Hooks
- Filter or Hook to catch pre-rendering of post content
- check to see if hook is available
- How do I target a single page to modify the comment form of only that page?
- How to removes all instances of thumbnails displayed in my theme?
- Insert term when page is published – avoid duplicates after edits
- How to modify core when there is no hook?
- When does a function assigned to the content_filtered_edit_pre filter hook fire?
- Capture post content before page renders
- Remove_action does not work
- How to remove action with slashes and arrows?
- Can the wordpress color palettes by changed through Javascript?
- Add content as soon starts
- Make an array filterable per hook
- How do I add a checkmark to my-sites save settings hook
- Comment search plugin
- Plugin options, presets and filters : can you help me improve my workflow?
- How to filter backend post list showing only posts having a shortcode
- Add Lightbox To WordPress Native Gallery
- How can I replace an oEmbed URL in post with actual embed HTML
- Wrapping my head around add_filter
- Is it possible to bind a function to a filter hook via Ajax?
- How do I hook my function to run only after submitting login form
- Prepending character(s) to a custom tag title?
- Modify existing plugin function with add_filter
- Filter for author list in gutenberg core editor
- Remove tags without a specific meta key from “choose from the most used tags”
- What is the action hook to use if you want to capture the new password during password change?
- How can I edit comment meta value before it is saved?
- an action hook when a post reaches a certain number of views
- Action hook to control access to certain parts of my site
- Need to return shortcode text instead of the output
- Where exactly does the edit_{taxonomy} hook fire?
- Is there any reason for the nested filters to be applied on the first case and not in the second one?
- Replace Data In Post & Update Meta Field Post Is Saved
- Filter Media by attached page or blog post in Library
- How to optionally append components to the output of a gutenberg block?
- Problem width wp_insert_post_data and Gutenberg block editor
- How to add custom media library mime icons?
- style_loader_tag not changing stylesheet to preload
- How do I check if I can use the allowed_block_types filter?
- Add filter return false not working
- Security question – Display a General Custom Login Error Message
- Filter wp_mail based on content type
- Add HTML to the bottom of each post in a post list
- get_the_archive_title hook unwanted changes!
- Hook inside a hook
- Incrementing content with extra text after save/publish
- Adding user filter – Not updating data in URL
- WP Dashboard -> Posts-> Filter by Category -> Form Method Change : Which Hook
- Hide H1 Title using the_title filter
- Add class to all parent elements inside the_content
- Filter dashboard custom post listing by user
- Admin New Order: Autofocus on Search a product
- How to filter part of a variable if it is no array?
- How to change this WP logo and posts url in block editor?
- Better way to change the default password reset url with the woocommerce one?
- Hooking/Filtering theme name to add theme directory
- Replacing text using add_filter
- Passing value from one hook to another
- Is there any filter or action hook to remove layout classes from appearing in my templates?
- Change password reqts with NO plugin without breaking resetpass link?
- hook on the_excerpt