Hozzászólások és média
A comments és a media kategória 14 képessége: hozzászólások moderálása, médiatár, feltöltés URL-ről vagy base64-ből.
Az ability-nevek előtagja site-manager/. A Címke úgy áll itt, ahogy a WordPress mutatja: angolul. A kötelező bemenet félkövér. Az „összetett bemenet” teljes sémáját a képesség leírása adja (GET /wp-json/wp-abilities/v1/abilities/site-manager/<név>). A hívás módja: Hívás REST-en.
Hozzászólások
Szekció neve “Hozzászólások”| Ability | Címke | HTTP | Típus | Jogosultság | Bemenet |
|---|---|---|---|---|---|
approve-comment |
Approve Comment | POST | író | moderate_comments |
id |
bulk-comments |
Bulk Comment Action | POST | romboló | moderate_comments |
ids, action |
comment-counts |
Get Comment Counts | GET | olvasó | moderate_comments |
post_id |
create-comment |
Create Comment | POST | író | moderate_comments |
post_id, content, author_name, author_email, author_url, user_id, parent, approved, meta |
delete-comment |
Delete Comment | DELETE | romboló | moderate_comments |
id, force |
get-comment |
Get Comment | GET | olvasó | moderate_comments |
id |
list-comments |
List Comments | GET | olvasó | moderate_comments |
limit, offset, status, post_id, type, search, author_email, orderby, order |
spam-comment |
Mark Comment as Spam | POST | író | moderate_comments |
id |
update-comment |
Update Comment | POST | író | moderate_comments |
id, content, author_name, author_email, author_url, status, meta |
Média
Szekció neve “Média”Az upload-media URL-ről (url) vagy base64 adatból (data) tölt fel. URL-nél a bővítmény a megadott címről tölti le a fájlt.
| Ability | Címke | HTTP | Típus | Jogosultság | Bemenet |
|---|---|---|---|---|---|
delete-media |
Delete Media | DELETE | romboló | upload_files |
id, force |
get-media |
Get Media | GET | olvasó | upload_files |
id |
list-media |
List Media | GET | olvasó | upload_files |
limit, offset, mime_type, search, orderby, order |
update-media |
Update Media | POST | író | upload_files |
id, title, alt, caption, description |
upload-media |
Upload Media | POST | író | upload_files |
url, verify_ssl, data, filename, title, alt, caption, description |