-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_add_to_outbox_failed
github-actions[bot] edited this page Jul 23, 2025
·
27 revisions
Action triggered when adding an object to the outbox fails.
add_filter(
'activitypub_add_to_outbox_failed',
function (
WP_Error $activity,
Activitypub\mixed $data,
string $activity_type = null,
int $user_id,
string $content_visibility
) {
// Your code here
return $activity;
},
10,
5
);-
WP_Error$activityThe error object or false. -
Activitypub\mixed$dataThe object that failed to be added to the outbox. -
string|null$activity_typeThe type of the Activity or null if$datais an Activity. -
int$user_idThe User ID. -
string$content_visibilityThe visibility of the content. Seeconstants.phpfor possible values:ACTIVITYPUB_CONTENT_VISIBILITY_*.
\do_action( 'activitypub_add_to_outbox_failed', $activity, $data, $activity_type, $user_id, $content_visibility )\do_action( 'activitypub_add_to_outbox_failed', $outbox_activity_id, $data, $activity_type, $user_id, $content_visibility )Follow @[email protected] for updates and news.