Clanbite Social Kit

vote_poll( WP_REST_Request $request ): \WP_REST_Response|\WP_Error

Cast a vote on a post poll (one vote per user; authors cannot vote on their own poll).

public

Class: Kernowdev\ClanbiteSocialKit\Rest\Rest_Controller

Parameters

$request (WP_REST_Request) Required

Request with JSON body option_index (0-based).

Returns

\WP_REST_Response|\WP_Error

Defined in inc/Rest/Rest_Controller.php