- 
                Notifications
    You must be signed in to change notification settings 
- Fork 83
activitypub_inbox_create
        github-actions[bot] edited this page Oct 30, 2025 
        ·
        2 revisions
      
    Fires when a Create activity is received for an existing object.
/**
 * Fires when a Create activity is received for an existing object.
 *
 * @param array                         $activity 
 * @param Activitypub\int[]             $user_ids 
 * @param Activitypub\Activity\Activity $activity_object 
 * @return array The filtered value.
 */
function my_activitypub_inbox_create_callback( array $activity, Activitypub\int[] $user_ids, Activitypub\Activity\Activity $activity_object ) {
    // Your code here.
    return $activity;
}
add_filter( 'activitypub_inbox_create', 'my_activitypub_inbox_create_callback', 10, 3 );- 
array$activityThe activity-object.
- 
Activitypub\int[]$user_idsThe ids of the local blog-users.
- 
Activitypub\Activity\Activity$activity_objectThe activity object.
\do_action( 'activitypub_inbox_create', $activity, $user_ids, $activity_object )Follow @[email protected] for updates and news.