So, in my case, the answer was simple, though it took a long time to find. Just in case anyone else ever has this issue, here is what solved it for me:
I was calling the register_post_meta in a file that was only being included if is_admin() returns true (this is a plugin metabox conversion, so there are some admin-only assets being called, etc)
Long story short: meta fields were being registered in the block editor because is_admin() returns true, but when the request was sent to REST, is_admin() is false, so the meta fields were not being registered, and an empty array was returned.
Related Posts:
- Update post meta custom field using block editor
- How to break meta values into different items and avoid duplicates?
- Transition from (classical) serialized custom meta field to (gutenberg) rest enabled meta
- How to save a ToggleControl value in a meta field?
- Custom Meta Box not Saving in Posts with Gutenberg Editor
- How to wrap meta values seperated by comma in ? [closed]
- Run a check for multiple meta key values
- IF Custom field value equals ZERO
- Looping inside block return
- Set class if a meta value is set within post archive
- WordPress Blocks, setAttributes not saving
- Can’t set custom meta fields for a post
- Custom meta POST request fired twice when updating a post in Gutenberg
- Custom Field: Display only if a specific key is selected outside the loop
- WP Query Args – search by meta_key or title
- Saving multiple custom meta box fields
- get Custom field label (select/dropdown) on front end
- What is the best way to get a different post’s custom field/postmeta with js?
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- How to get custom post meta using REST API
- What is “meta_input” parameter in wp_insert_post() used for?
- How to enable revisions for post meta data?
- Best way to programmatically remove a category/term from a post
- Using get_post_meta with new_to_publish
- Add metabox to document tab in gutenberg
- Can I count the number of users matching a value in a multiple value key?
- When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
- Auto sort the wp-admin post list by a meta key
- Storing meta fields multiple times OR once with multi dimensional array?
- extend Meta Box / Document Panel
- display specific custom fields
- Is there a hook / action that is triggered when adding or removing a post thumbnail?
- getEntityRecord without knowing the post type
- passing argument to get_template_part() or a better way to code
- Is it possible to store arrays in a custom field?
- Get updated meta data after save_post hook
- Multiple meta values for same meta_key adding on “Preview Changes” hit but not on saving or updating post
- importing data from non-wordpress mysql db
- Assign/update the custom field value for all posts
- Order by custom field date with ASC order
- Transients vs CRON +Custom Fields: Caching Data Per Post
- Unable to save datetime custom meta field using update_post_meta() function
- Create custom field on post draft or publish?
- Ordering posts by anniversary using only day and month
- get_post_meta fields don’t show up on posts page
- copy attachments to another post type and change attachment url
- Cannot edit post meta fields with rest API
- ajax delete value from custom field array
- How to use pagination with get_post_meta
- Add a post meta key and value only if it does not exist on the post
- WP_query : meta_key with custom rule for specific value
- Move value of one custom field to another
- Order posts according to user defined order for meta values?
- Custom fields: In what order are they saved into the DB?
- Function to change meta value in database for each post
- Get a post_id where meta_value equals something in a serialized meta_value field
- Get aggregate list of all custom fields for entire blog
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- How to display Meta Field Value?
- MySQL query to set wp_postmeta using term_taxonomy_id value
- How to Validate Post Meta type/extension (Video File Image File etc)
- trim custom field text value and show (…)
- using multiple meta_key and meta_value in query_posts
- How can I sort homepage by a meta value?
- Get specific custom field keys from a post and put into an array
- How do I use wp_query for WordPress search?
- Nav Menu – Add class based on meta keys
- MySQL Query that looks for post with Custom Field, then changes Category
- ACF: How to get the full field name (meta_key) by a field key?
- How to update a meta field of type array in Gutenberg
- Bulk remove post meta
- How to create html block to display extra information on woocommerce single product page
- How to create a Custom Meta Box with Name/Value Admin User Input Fields?
- filtering custom post types via meta data drop down
- How to add a new meta key and assign timestamp to posts
- If meta key exists in get posts function otherwise create it
- Filter by custom field (meta_key) using JSON API
- Print custom field in Query Loop block
- WordPress Rest API to call page data associate with custom meta
- Unsaved changes in metabox inputs not detected in the block editor
- Possible to add a meta field for css attribute to the editor Advanced panel?
- Read / Watch / Listen times – meta
- How do I Implement Atomic Update of Post Metadata?
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Add new image block, set default class name and update it using Javascript
- Hide custom meta data if empty
- How do I have WP_Query match posts based on search parameter OR meta fields? (rather than search parameters AND meta fields)?
- What WordPress function to use to get meta value by using meta keys?
- How to create a shortcode to print specific values stored in a post meta array?
- Removing link ” from ” on meta_value in custom feilds
- Add custom field to all posts in specific post_type
- Button inside Custom Meta Box triggering the Update Button
- Why is my Custom Meta Box Field Inputs NOT saving?
- Get registered custom fields or post meta even if empty
- Displaying multiple URLs as custom field values
- How to load an assets based on custom field value?
- Custom WP_Query for WordPress Search Results with meta_query
- How can you include custom post meta in search without calling each key?
- Unique meta_key with array value vs repeated meta_key with single values
- Can I access a post meta field before the loop?