Clanbite Social Kit Since 1.6.2
rest_toggle( WP_REST_Request $request ): WP_REST_Response|WP_ErrorREST: toggle a reaction ({ "reaction_type": "like" }).
public static
Class: Kernowdev\ClanbiteSocialKit\Social\Reactions
Parameters
$request(WP_REST_Request) RequiredRequest.
Returns
WP_REST_Response|WP_Error
Defined in inc/Social/Reactions.php
Changelog
| Version | Description |
|---|---|
| 1.6.2 | Introduced. |