Skip to content

activitypub_handled_create

github-actions[bot] edited this page Oct 16, 2025 · 11 revisions

Fires after an ActivityPub Create activity has been handled.

Auto-generated Example

/**
 * Fires after an ActivityPub Create activity has been handled.
 *
 * @param array                         $activity 
 * @param int                           $user_id 
 * @param bool                          $success 
 * @param WP_Comment|\WP_Post|\WP_Error $result 
 * @return array The filtered value.
 */
function my_activitypub_handled_create_callback( array $activity, int $user_id, bool $success, WP_Comment|\WP_Post|\WP_Error $result ) {
    // Your code here.
    return $activity;
}
add_filter( 'activitypub_handled_create', 'my_activitypub_handled_create_callback', 10, 4 );

Parameters

  • array $activity The ActivityPub activity data.
  • int $user_id The local user ID.
  • bool $success True on success, false otherwise.
  • WP_Comment|\WP_Post|\WP_Error $result The WP_Comment object of the created comment, or null if creation failed.

Files

\do_action( 'activitypub_handled_create', $activity, $user_id, $success, $result )

← All Hooks

Users

Developers

Clone this wiki locally