From the documentation:
Prepend and append to the panel contents:
var el = wp.element.createElement; function wrapPostFeaturedImage( OriginalComponent ) { return function( props ) { return ( el( wp.element.Fragment, {}, 'Prepend above', el( OriginalComponent, props ), 'Append below' ) ); } } wp.hooks.addFilter( 'editor.PostFeaturedImage', 'my-plugin/wrap-post-featured-image', wrapPostFeaturedImage );
So did you intentionally not using wp.element.Fragment?
You may also want to check the example here:
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
- Better extend a class or use add filter/action hooks?
- Detect when gutenberg editor title is available in Dom after editor load
- Set default value for “Additional CSS class(es)” for specific block types
- How to check which submission button was clicked?
- “Invalid parameter(s): attributes” issue in context of “blocks.registerBlockType” filter
- WordPress hooks/filters insert before content or after title
- How can I edit post data before it is saved?
- add_action(), add_filter() before or after function
- How do filters and hooks really work in PHP
- Trouble understanding apply_filters()
- How would one modify the filtering Gutenberg applies to pasted content?
- Gutenberg: Is there a way to know if current block is inside InnerBlocks?
- How to add a custom CSS class to core blocks in Gutenberg editor?
- Where to hook into post content?
- What hook do I use to edit the post statuses option in admin?
- Filter hook before create order WooCommerce
- Changing text within the Block Editor
- wp_mail – Remove sitename from email subject
- Remove left alignment option in core/image block
- apply_filters() slices away needed arguments
- WP Rest API – Upload media without saving attachment post
- How to add attribute to output with wp_video_shortcode add_filter
- How to change Woocommerce breadcrumbs content?
- Anyway to edit the titlebar of WordPress Widgets in the Admin area?
- How to enable visual editor when editing comments on the dashboard?
- Please explain me what the do_action does
- Is it possible to Hook/Filters Attachment Creation?
- Can’t get wp_title filter working in twenty sixteen child theme
- How can I reliably and globally disable wptexturize?
- Removing labels and tag on WordPress’s default login form
- How to trigger the core WPLANG to make automatically set a language when the theme is activated? [duplicate]
- How to hook some Unicode texts into calendar widget safely?
- How to add attributes to tag when template cannot be directly modified
- How can I add a fifth option to the alignment picker?
- Filter the URL of next_posts_link & previous_posts_link
- How does WordPress call functions attached to a certain action hook before calling functions attached to other hooks
- Customize user account activation message
- Conditionally call add_action depending on post_type?
- Customizing the default logout page of WordPress
- WordPress tag cloud add more links
- Error when overriding only some audio shortcode HTML output
- Use safety filters even if after applied intval?
- Why anything done on comments_array hook gets reset?
- How can I filter block registration based on post-type? (Block alignment settings)
- Yoast SEO hooks overriding themselves
- Is possible dequeue/remove style from wp_footer() hook and add on wp_head() hook?
- How to call a function or method that is Namespaced using another plugin
- add filter login_redirect does not contain original requested redirect
- get_header and hook avoid normal call
- Question about how do wordpress filters/actions work
- How to center oEmbedded content
- How to add numeric slug for child page in WordPress 5.9?
- Change username before login
- How to change the order (priority) of registered filters (or actions) (e.g. for the_content)?
- Filter taxonomy admin pagination
- WP action/filter to modify title before header output and article output?
- Using wp_handle_upload() to Direct Specific Path by Using $overrides
- How to link the whole list item in Gutenberg’s latest posts block?
- add_filter(allowed_block_types) -> adding core/paragraph bugs Gutenberg editor
- Add default user field to WooCommerce checkout [closed]
- I want to allow the use of a data-flw attribute in links in comments
- How to know what filter to use and how to use it?
- Proper after_setup_theme and wp_head cleanup
- How can I replace an oEmbed URL in post with actual embed HTML
- Is it possible to bind a function to a filter hook via Ajax?
- Change custom post type GUID in RSS
- filter hook to load a different post/page on current post/page
- Filter for author list in gutenberg core editor
- Remove tags without a specific meta key from “choose from the most used tags”
- Redirect to woocommerce checkout after adding to cart – item already in cart
- How to append custom text to the output of ‘categories widget’?
- How can I edit comment meta value before it is saved?
- Action hook to control access to certain parts of my site
- 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?
- Filter Media by attached page or blog post in Library
- How do I add a line break to a string that is output by PHP?
- Problem width wp_insert_post_data and Gutenberg block editor
- style_loader_tag not changing stylesheet to preload
- How do I check if I can use the allowed_block_types filter?
- Right filter for rewriting page statuscode
- Add filter return false not working
- Security question – Display a General Custom Login Error Message
- Customize plugin templates
- Filter wp_mail based on content type
- get_the_archive_title hook unwanted changes!
- How to filter wp_get_recent_posts() to only posts that have thumbnails?
- Hook inside a hook
- 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
- Getting entry ID from frm_email_message filter in formidable
- Auto append text after the title?
- How to change this WP logo and posts url in block editor?
- How to elect position of new item output in a dropdown when using add_filter
- Are blocks that are converted to patterns no longer filterable through the_content?