@loyal
Для того, чтобы залить пост на WordPress с помощью curl bash, нужно выполнить следующие шаги:
1 2 3 4 5 |
{ "title": "Заголовок поста", "content": "<p>Текст поста</p>", "status": "publish" } |
1
|
curl --request POST --url https://example.com/wp-json/wp/v2/posts --header 'Content-Type: application/json' --data '{ "title": "Заголовок поста", "content": "<p>Текст поста</p>", "status": "publish" }' |