I'm adding posts to my WordPress site through the v2 API. The post is being inserted, but the custom_fields are not. Here is my payload below:
$data = [
'title' => 'Meu novo titulo 03',
'status' => 'publish',
'meta_data' => [
[
'key' => 'bt_thumb',
'value' => '111'
],
[
'key' => 'embed_code',
'value' => '222'
],
]
];
It does not error, simply does not insert custom_fields (custom_fields already exist in WP, see image below).
Thanks!