Skip to content

activitypub_collection_sync

github-actions[bot] edited this page Oct 30, 2025 · 2 revisions

Action triggered Collection Sync.

This allows for async processing of the reconciliation.

Auto-generated Example

/**
 * Action triggered Collection Sync.
 * 
 * This allows for async processing of the reconciliation.
 *
 * @param mixed $string_collection_type_the_collection_type 
 * @param Activitypub\int[] $user_ids 
 * @param string            $actor_url 
 * @param array             $params 
 * @return mixed The filtered value.
 */
function my_activitypub_collection_sync_callback( $string_collection_type_the_collection_type, Activitypub\int[] $user_ids, string $actor_url, array $params ) {
    // Your code here.
    return $string_collection_type_the_collection_type;
}
add_filter( 'activitypub_collection_sync', 'my_activitypub_collection_sync_callback', 10, 4 );

Parameters

  • $string_collection_type_the_collection_type Other variable names: $collection_type
  • Activitypub\int[] $user_ids The local user IDs.
  • string $actor_url The remote actor URL.
  • array $params The parsed Collection-Synchronization header parameters.

Files

\do_action( 'activitypub_collection_sync', $collection_type, (array) $user_ids, $actor_url, $params )

← All Hooks

Users

Developers

Clone this wiki locally