Skip to content

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.

Auto-generated Example

/**
 * 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' );

Parameters

  • int $frequency The frequency in seconds. Default is one week.
  • int $user_id The local user ID.
  • string $inbox_authority The inbox authority.

Files

\apply_filters( 'activitypub_collection_sync_frequency', WEEK_IN_SECONDS )

← All Hooks

Users

Developers

Clone this wiki locally