-
Notifications
You must be signed in to change notification settings - Fork 84
activitypub_collection_sync_frequency
github-actions[bot] edited this page Oct 22, 2025
·
1 revision
Filter the frequency of Collection-Synchronization headers sent to a given authority.
/**
* Filter the frequency of Collection-Synchronization headers sent to a given authority.
*
* @param int $frequency
* @param int $user_id
* @param string $inbox_authority
* @return int The filtered value.
*/
function my_activitypub_collection_sync_frequency_callback( int $frequency, int $user_id = null, string $inbox_authority = null ) {
// Your code here.
return $frequency;
}
add_filter( 'activitypub_collection_sync_frequency', 'my_activitypub_collection_sync_frequency_callback' );-
int$frequencyThe frequency in seconds. Default is one week. -
int$user_idThe local user ID. -
string$inbox_authorityThe inbox authority.
\apply_filters( 'activitypub_collection_sync_frequency', WEEK_IN_SECONDS )Follow @[email protected] for updates and news.