-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_handled_like
github-actions[bot] edited this page Oct 30, 2025
·
10 revisions
Fires after an ActivityPub Like activity has been handled.
/**
* Fires after an ActivityPub Like activity has been handled.
*
* @param array $like
* @param Activitypub\int[] $user_ids
* @param bool $success
* @param array|false|int|string|\WP_Comment|\WP_Error $result
* @return array The filtered value.
*/
function my_activitypub_handled_like_callback( array $like, Activitypub\int[] $user_ids, bool $success, array|false|int|string|\WP_Comment|\WP_Error $result ) {
// Your code here.
return $like;
}
add_filter( 'activitypub_handled_like', 'my_activitypub_handled_like_callback', 10, 4 );-
array$likeThe ActivityPub activity data. -
Activitypub\int[]$user_idsThe local user IDs. -
bool$successTrue on success, false otherwise. -
array|false|int|string|\WP_Comment|\WP_Error$resultThe WP_Comment object of the created like comment, or null if creation failed.
\do_action( 'activitypub_handled_like', $like, (array) $user_ids, $success, $result )Follow @activitypub.blog@activitypub.blog for updates and news.