Skip to content

activitypub_handled_like

github-actions[bot] edited this page Aug 18, 2025 · 8 revisions

Fires after a Like has been handled.

Auto-generated Example

/**
 * Fires after a Like has been handled.
 *
 * @param array             $like 
 * @param int               $user_id 
 * @param Activitypub\mixed $state 
 * @param Activitypub\mixed $reaction 
 */
function my_activitypub_handled_like_callback( array $like, int $user_id, Activitypub\mixed $state, Activitypub\mixed $reaction ) {
    // Your code here.
}
add_action( 'activitypub_handled_like', 'my_activitypub_handled_like_callback', 10, 4 );

Parameters

  • array $like The Activity array.
  • int $user_id The ID of the local blog user.
  • Activitypub\mixed $state The state of the reaction.
  • Activitypub\mixed $reaction The reaction object.

Files

do_action( 'activitypub_handled_like', $like, $user_id, $state, $reaction )

← All Hooks

Users

Developers

Clone this wiki locally