All meta abilities
maxi/bulk-update-meta is a Pro plan ability. It is not available on the Lite plan.Object types
All meta abilities accept anobject_type parameter:
post— applies to posts, pages, and any custom post typeterm— applies to taxonomy terms (categories, tags, and custom taxonomies)user— applies to WordPress users
Key ability examples
maxi/get-meta
Retrieve a single meta value by key, or retrieve all meta for an object by omittingmeta_key.
- Single key
- All meta
maxi/set-meta
Add a new meta value or update an existing one. If the key does not exist, WordPress creates it. If it already exists, WordPress updates it.maxi/bulk-update-meta
Pro only. Set multiple meta keys across many objects at once. Pass anobject_ids array and a meta object with all the keys and values to apply.
maxi/bulk-update-meta also accepts a parent_id input shape for WooCommerce variable products. When you pass parent_id, the ability expands the operation to all variations of that product automatically.Passing meta values
Permission model
Meta abilities enforce object-level permission checks in addition to the capability listed in the table above:- Post reads require the
read_postcapability for that specific post. - Post writes require the
edit_postcapability for that specific post. - User meta reads require
list_users. User meta writes requireedit_user. - Term meta writes require the
manage_termscapability for that taxonomy. - Term meta reads are open — terms are public taxonomy objects and do not require additional capability.