Skip to content

activitypub_collection_sync

github-actions[bot] edited this page Oct 22, 2025 · 1 revision

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 int    $user_id 
 * @param string $actor_url 
 * @param array  $params 
 * @return mixed The filtered value.
 */
function my_activitypub_collection_sync_callback( $string_collection_type_the_collection_type, int $user_id, 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
  • int $user_id The local user ID.
  • string $actor_url The remote actor URL.
  • array $params The parsed Collection-Synchronization header parameters.

Files

\do_action( 'activitypub_collection_sync', $collection_type, $user_id, $actor_url, $params )

← All Hooks

Users

Developers

Clone this wiki locally