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