Clanbite Social Kit Since 1.6.4

rest_reactors( WP_REST_Request $request ): WP_REST_Response|WP_Error

REST: everyone who reacted to an object with one reaction (the "See all" list), newest first.

Only for viewers who may see the object: the object type's optional can_view callback decides (return false or a WP_Error to refuse).

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Reactions

Parameters

$request (WP_REST_Request) Required

Request (reaction_type query argument).

Returns

WP_REST_Response|WP_Error { reaction_type, reactors: list<{ id, name, profile_url, avatar_url }> }.

Defined in inc/Social/Reactions.php

Changelog

VersionDescription
1.6.4Introduced.