-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_handled_reject
github-actions[bot] edited this page Oct 30, 2025
·
2 revisions
Fires after an ActivityPub Reject activity has been handled.
/**
* Fires after an ActivityPub Reject activity has been handled.
*
* @param array $reject
* @param Activitypub\int[] $user_ids
* @param bool $success
* @param WP_Post|\WP_Error $result
* @return array The filtered value.
*/
function my_activitypub_handled_reject_callback( array $reject, Activitypub\int[] $user_ids, bool $success, WP_Post|\WP_Error $result ) {
// Your code here.
return $reject;
}
add_filter( 'activitypub_handled_reject', 'my_activitypub_handled_reject_callback', 10, 4 );-
array$rejectThe ActivityPub activity data. -
Activitypub\int[]$user_idsThe local user IDs. -
bool$successTrue on success, false otherwise. -
WP_Post|\WP_Error$resultActor post on success, WP_Error on failure.
\do_action( 'activitypub_handled_reject', $reject, (array) $user_ids, $success, $result )Follow @[email protected] for updates and news.