Write custom fields
set_content_metaWrite custom fields on any WordPress content item, including meta keys REST ignores. Stores as standard post meta with companion plugin.
Instructions
Write custom fields (post meta) on a content item, including keys not registered with show_in_rest — which core REST refuses to write. Needs the companion plugin. Values are stored as standard post meta, so they survive if this tooling is removed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Content ID. | |
| meta | Yes | Key/value pairs to write. A null value deletes the key. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |