-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_handled_like
github-actions[bot] edited this page Jul 29, 2025
·
8 revisions
Fires after a Like has been handled.
add_action(
'activitypub_handled_like',
'my_activitypub_handled_like_callback',
10,
4
);
function my_activitypub_handled_like_callback(
array $like,
int $user_id,
Activitypub\mixed $state,
Activitypub\mixed $reaction
) {
// Your code here.
}
-
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.
do_action( 'activitypub_handled_like', $like, $user_id, $state, $reaction )
Follow @[email protected] for updates and news.