Clanbite Social Kit clanbite-social-kit/v1 Since 1.6.2
POST /wp-json/clanbite-social-kit/v1/reactions/(?P<object_type>[a-z0-9_-]+)/(?P<id>\d+)POST
REST: toggle a reaction ({ "reaction_type": "like" }).
Access is checked by a custom check.
| Argument | Type | Default | Description |
|---|---|---|---|
object_type required | string | ||
id required | integer |
Handled by rest_toggle()
Example
curl -X POST 'https://example.com/wp-json/clanbite-social-kit/v1/reactions/(?P<object_type>[a-z0-9_-]+)/(?P<id>\d+)'Defined in inc/Social/Reactions.php
Changelog
| Version | Description |
|---|---|
| 1.6.2 | Introduced. |