Can I Import the credit info via REST API?
-
Hallo
I would like to import the credit info together with the article
I hoped for a simple ‘media_credit’ JSON parameter to/wp-json/wp/v2/media
, but that did not work.I see there is a separate REST service, but no documentation for it
/wp-json/v1/media-credit/v1/replace_in_content
. What is that about?In the output from
GET /wp-json/wp/v2/media/$id
I find:'media_credit': {'fancy': 'Peter XX', 'plaintext': 'Peter XX', 'raw': {'flags': {'nofollow': False}, 'freeform': 'Peter XX', 'url': '', 'user_id': 7}, 'rendered': 'Peter XX'},
Thanks
M
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Can I Import the credit info via REST API?’ is closed to new replies.