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.

ArgumentTypeDefaultDescription
id requiredinteger

Handled by get_post()

DELETE

Delete a social post (author, team or group manager, or site administrator).

Access is checked by require_login().

ArgumentTypeDefaultDescription
id requiredinteger

Handled by delete_post()

PATCH

Update a social post (author only).

Access is checked by require_login().

ArgumentTypeDefaultDescription
id requiredinteger

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

VersionDescription
1.4.1Updated.