-
Notifications
You must be signed in to change notification settings - Fork 84
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.
/**
* 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 );-
$string_collection_type_the_collection_typeOther variable names:$collection_type -
int$user_idThe local user ID. -
string$actor_urlThe remote actor URL. -
array$paramsThe parsed Collection-Synchronization header parameters.
\do_action( 'activitypub_collection_sync', $collection_type, $user_id, $actor_url, $params )Follow @[email protected] for updates and news.