Clanbite Social Kit clanbite-social-kit/v1
GET | DELETE | PATCH /wp-json/clanbite-social-kit/v1/posts/(?P<id>\d+)GET
Fetch a single social post if the viewer may see it.
Public. Anyone can call this endpoint.
| Argument | Type | Default | Description |
|---|---|---|---|
id required | integer |
Handled by get_post()
DELETE
Delete a social post (author, team or group manager, or site administrator).
Access is checked by require_login().
| Argument | Type | Default | Description |
|---|---|---|---|
id required | integer |
Handled by delete_post()
PATCH
Update a social post (author only).
Access is checked by require_login().
| Argument | Type | Default | Description |
|---|---|---|---|
id required | integer |
Handled by update_post()
Example
curl -X GET 'https://example.com/wp-json/clanbite-social-kit/v1/posts/(?P<id>\d+)'Defined in inc/Rest/Rest_Controller.php
Changelog
| Version | Description |
|---|---|
| 1.4.1 | Updated. |