Skip to content

activitypub_handled_create

github-actions[bot] edited this page Aug 7, 2025 · 5 revisions

Fires after a Create activity has been handled.

Auto-generated Example

add_filter(
   'activitypub_handled_create',
    function(
        array $activity,
        int $user_id,
        WP_Comment|\WP_Error $state,
        WP_Comment|\WP_Error $reaction = null
    ) {
        // Your code here.
        return $activity;
    },
    10,
    4
);

Parameters

  • array $activity The activity-object.
  • int $user_id The id of the local blog-user.
  • WP_Comment|\WP_Error $state The comment object or WP_Error.
  • WP_Comment|\WP_Error|null $reaction The reaction object or WP_Error.

Files

\do_action( 'activitypub_handled_create', $activity, $user_id, $state, $reaction )

← All Hooks

Users

Developers

Clone this wiki locally