So, after some more testing, I figured out why it was not saving like it should. I was including the meta during init when it was in the admin panel, but not for anywhere else. Thus when it was being saved (assuming that it was saving as not admin) the meta field was not there to be saved to. I fixed it by making sure that it was taken out of the admin specific code and was being loaded during the pre-admin specific code is.
Related Posts:
- How to use apiFetch to get author information in Gutenberg properly?
- why is apiFetch throwing Unhandled Promise Rejection: TypeError: Object is not a function
- REST API error in block editor for custom templates
- check if Gutenberg is currently in use
- How to use PanelColorSettings in custom Gutenberg block?
- Adding pre-publish checks with Gutenberg
- Managing two editable fields in gutenberg
- How to make repeated component/block in Gutenberg
- How to save block attributes when the output doesn’t change
- How to remove unwanted panels inside InspectorControls from core blocks in Gutenberg
- Gutenberg ServerSideRender is deprecated, how to work with new wp.serverSideRender component?
- How to get data from WordPress $wpdb into React Gutenberg Blocks Frontend?
- lodash dependency in a Gutenberg plugin
- How to: Rest endpoint returning empty object
- Custom endpoint that returns an xml
- creating elements/innerblocks via rangecontrol
- WP rest api v2 posts filter by ‘search’ & ‘category_name’ not working
- Using the component outside the editor. select(‘core’) is null
- Gutenberg is there a way to know if the current block is reusable?
- How to disable “Transform to” option in Gutenberg custom blocks
- How to allow core Gutenberg blocks selection only when you are inside a custom inner block
- What method to use to call a REST API?
- Saving data from block editor to the database
- How to create multiple Gutenberg blocks in one plugin
- How to get color name in PanelColorSettings in custom Gutenberg block?
- Initial help with official “create a block” tutorial
- WP REST API V2 – Add user data to response
- How do I dynamically render an InnerBlock inside a dynamic block?
- Gutenberg Block showing invalid content on edit
- Register a sidebar in a WordPress plugin
- Gutenberg blocks not getting styled on back end
- How to get results of subcategories also?(WP Rest Api v2)
- How to setAttributes in Gutenberg block?
- Run code once when block is created
- Best way to save custom css for an block
- Amending REST API function without deactivate/activate plugin every time changes is made
- How can I listen to events in Gutenberg block?
- It’s possible to passing a ref to FormTokenField from parent component using forwardRef?
- What’s the right way to instantiate new blocks and/or the plugin itself in toto when using wppb architecture?
- WP Gutenberg Blocks – How to limit first/root blocks
- ResizableBox with RangeControl not working
- Gutenberg: import dependency or assign from global variable?
- Serve text/html from wp-json API via WPEngine, headers not being set properly
- How to do POST request with WP REST API v2 to custom table?
- Gutenberg table block with Bootstrap .table class
- How to control an elements classes from multiple Gutenberg sidebar controls?
- How to add a gradient component to a custom block
- Custom Rest Endpoint: Post/Put/Patch not working
- How to add template colors to custom block options in WordPress Gutenberg editor sidebar?
- Do I need to create an endpoint?
- Gutenberg blocks error: Each child in a list should have a unique “key” prop
- How to properly package a block plugin
- Setting global block attribute value
- Mock a dependency of a WP_REST_Controller class
- Modify custom block plugin without losing content
- Custom Block Not Shown in Block Inserter
- Allow REST API Endpoint to specific user and hide from public
- How to do admin ajax request in a plugin for rest api
- When setting styles to an extended block that was saved as a pattern, it doesn’t remove the style that was there
- Query String Filtering API
- extraprops override existing props
- Gutenberg block breaks when showing new data
- Get Custom taxonomy parent with wordpress REST API
- register_meta not showing custom post type metabox data in rest api
- Is “document loaded” different on admin side than public side?
- How to re-render inspector controls?
- Securing custom rest API endpoints with public access from PWA
- WP_Query not ordering correctly
- 403 error rest_’cookie_invalid_nonce’ on API Request
- Get value of custom checkbox from Gutenberg sidebar in plugin
- Where to save Gutenberg plugin data?
- WC REST API Error Handling
- Gutenberg component in a plugin admin
- How to integrate plugins into block editor
- Add custom html classes to gutenberg wrapper
- How to create save function for custom Gutenberg style block?
- React in plugins: REST endpoints vs. regular functions
- Dynamic sidebar areas not working on the Theme Customizer
- WP API users per page
- Is it safe to use PUT and DELETE requests
- Gutenberg and custom blocks messed up pagespeed score. What did I wrong?
- Gutenberg text field validation
- Undo operation not working in Rich text [Gutenberg]
- Gutenberg: – Call a function after Server Side Component is rendered
- Accept only PDF file for upload
- get the queried_object of an url
- Help interpreting @wordpress/create-block-tutorial-template usage error
- Call API on post save/update and show the result in admin area
- How can I add a custom button to the post editor?
- External api call using wordpress
- How to get custom user meta by id in custom Gutenberg block
- Block Development: hamburger module throwing error in save function
- Run different permission_callback depending on HTTP method of custom REST API endpoint
- Adding a navigation with wp_nav_menu() to a custom block in the site editor
- Why isn’t custom sidebar panel not showing up in the Gutenberg Editor?
- How to get locale within WP REST Request?
- Execute callback after REST API request completes + Response is sent
- How can I include React useState in a custom gutenberg block plugin?
- How to boost WP custom post REST API GET queries by custom taxonomies
- Set srcset on a block image