Skip to content

activitypub_add_to_outbox_failed

github-actions[bot] edited this page Jul 25, 2025 · 16 revisions

Action triggered when adding an object to the outbox fails.

Auto-generated Example

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
);

Parameters

  • WP_Error $activity The error object or false.
  • Activitypub\mixed $data The object that failed to be added to the outbox.
  • string|null $activity_type The type of the Activity or null if $data is an Activity.
  • int $user_id The User ID.
  • string $content_visibility The visibility of the content. See constants.php for possible values: ACTIVITYPUB_CONTENT_VISIBILITY_*.

Files

\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 )

Hooks

Users

Developers

Clone this wiki locally