Skip to content

activitypub_tombstone_retention_days

github-actions[bot] edited this page May 18, 2026 · 1 revision

Filters the retention window for local tombstones, in days.

Set to 0 or a negative value to disable automatic purge.

Auto-generated Example

/**
 * Filters the retention window for local tombstones, in days.
 * 
 * Set to 0 or a negative value to disable automatic purge.
 *
 * @param int $days 
 * @return int The filtered value.
 */
function my_activitypub_tombstone_retention_days_callback( int $days ) {
    // Your code here.
    return $days;
}
add_filter( 'activitypub_tombstone_retention_days', 'my_activitypub_tombstone_retention_days_callback' );

Parameters

  • int $days Retention window in days. Default 90.

Files

\apply_filters( 'activitypub_tombstone_retention_days', 90 )

← All Hooks

Users

Developers

Clone this wiki locally