Have you tried using:
setImage: function( image_url, image_id ) {
dispatch( 'core/editor' ).editPost(
{
meta: {
'og_image_url': image_url,
'og_image_id': image_id
}
}
);
}
Instead of using a generic setMetaValue function?
Related Posts:
- Help to Create a Simple Plugin to make a post
- How can I make it so the Add New Post page has Visibility set to Private by default?
- Show Similar Post Titles ( Similar to Stack Exchange )
- How to add option box in “Edit Post” plugin API?
- How do I unlock a post programmatically?
- Update Multiple Post Meta for the Same Post In One call?
- How To Ignore a Filter On Applying Filter the Content In a Function
- How to get posts by content?
- Publish Post After Click On A Link
- Updating post meta for custom post types
- How can I add a custom meta value on file upload?
- Action on post publish
- Passing select control value to block
- Set attached to state
- Passing RichText attributes to function onChange
- How do I store information in a dynamic block in WordPress?
- How to change ID of an attachment in wp_posts and its related tables correctly?
- How use %like% in sql statement wordpress
- How to create custom embed block in gutenberg wordpress
- Adding Attachment Display Settings in custom media frame
- Execute a plugin only on post pages
- How to use get_theme_mod in gutenberg editor wordpress?
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- finding whether request is for post, and post id
- How to add Internationalization in WordPress using Javascript/React?
- how to disable blockrenderAppender inside all Innerblocks?
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- Display post lists in 2nd paragraph
- Using SVN to upload plugin created with gutenberg blocks
- How can I change the meta_key for a particular piece of information?
- Redirect to another page using contact form 7? [closed]
- Would Gutenberg be considered a PlugIn?
- How to add custom table style for table block in gutenberg editor
- Gutenberg Block Style CSS Class Is Not Applying on Backend
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- How to get all posts belongs to a user between a certain date
- Adding custom meta boxes to specified custom post type
- Post status doesn’t update to ‘future’ every time?
- Remember the Meta Value With Radio Buttons
- Delete data from custom table when deleting a post
- Plugin is creating posts twice
- Link Posts to External URL
- How to get Recent Post From Each Category with Thumbnail?
- help intercepting save_post through plugin
- Use a custom block in another block
- What snippet do I need to type to show my ACF field show up on my theme?
- Gutenberg default attributes are empty when accessing in edit
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- Is there a way to make [Table Of Content] plugin while not using revision data?
- Is it possible to pin a post in second position from top
- Has blocks gutenberg block multiples registers type in my Plugin
- Fixed: Console.log twice in the edit function
- How to display the custom post related blog by category?
- WP Forms not displaying,becomming an fatal error
- How to resolve warning for `unstableOnSplit` prop on a DOM element in block editor
- How to dynamically add template in Innerblock?
- how to auto random increment for post view
- How to securely controlling data without keeping it in postmeta?
- How can I see $post object in frontend from functions.php?
- Allow members to create groups on my site
- add tags to wordpress post using REST API
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Block content rendering on the top just below body tag
- WordPress Product Detail and catalog
- Is it possible to create duplicate post on other site (either push, on publish, or pull, periodically)?
- How can I get the Post ID and Post Type within a Must Use Plugin?
- Get value from an input field and pass into update_meta_data as $meta_value
- How to get post that has non zero or greater than zero meta value
- Delete postmeta when uninstall/delete plugin
- Get content and send to 3rd party
- Displaying friend’s posts only
- Storing values in Post Meta vs new tables
- Get page type to display content
- Capturing POST data
- Custom feed parameters / Template overriding
- Gutenberg: Dynamic Block – Show saved data in the editor
- wordpress last all added get meta value by post id
- Get post id in Post Page within Wp-admin
- Plugin to display text before a post
- Create plugin with multiple blocks
- How do I set register_meta for a specific CPT?
- How do I save meta key value in the save function?
- Update Content for a Custom Block Toolbar Button
- Wrong block appender button showing
- How to get custom setting from get_option and pass it in getEntityRecords in gutenberg block?
- warning wp session
- Vanilla javascript in custom gutenberg block not working
- WordPress custom block: Link saved in database not retrieved when editing post
- How can i get the post’s full html source by its ID?
- serverSideRender does not render “preview” html inside Gutenberg block
- Licensing a Plugin [closed]
- Security of a WordPress Plugin
- @wordpress/scripts advanced usage
- Generate and send ICS file through WordPress
- Gutenberg editor in WordPress 5.0.3 /wp-json/wp/v2/pages/4713/autosaves?_locale=user 500 (Internal Server Error)
- A more elegant way to handle notices/warnings
- WordPress User Frontend Editing Custom Fields
- What are the downsides of using bootstrap in plugin development?