Clanbite clanbite/v1

GET | DELETE /wp-json/clanbite/v1/notifications/(?P<id>[\d]+)

GET

Get single notification.

Access is checked by notifications_access_permissions_check().

ArgumentTypeDefaultDescription
id requiredinteger

Handled by get_item()

DELETE

Delete notification.

Access is checked by notifications_access_permissions_check().

ArgumentTypeDefaultDescription
id requiredinteger

Handled by delete_item()

Example

curl -X GET 'https://example.com/wp-json/clanbite/v1/notifications/(?P<id>[\d]+)'

Defined in inc/extensions/notifications/class-notification-rest-controller.php