-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_handled_reject
github-actions[bot] edited this page Sep 24, 2025
·
1 revision
Fires after an ActivityPub Reject activity has been handled.
/**
* Fires after an ActivityPub Reject activity has been handled.
*
* @param array $reject
* @param int $user_id
* @param bool $success
* @param WP_Post|\WP_Error $result
* @return array The filtered value.
*/
function my_activitypub_handled_reject_callback( array $reject, int $user_id, 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
$reject
The ActivityPub activity data. -
int
$user_id
The local user ID. -
bool
$success
True on success, false otherwise. -
WP_Post|\WP_Error
$result
Actor post on success, WP_Error on failure.
\do_action( 'activitypub_handled_reject', $reject, $user_id, $success, $result )
Follow @[email protected] for updates and news.