Skip to content

microsub_cache_duration

github-actions[bot] edited this page Jan 2, 2026 · 1 revision

Filters the cache duration for Microsub feeds.

Auto-generated Example

/**
 * Filters the cache duration for Microsub feeds.
 *
 * @param int $duration 
 * @param mixed $string 
 * @return int The filtered value.
 */
function my_microsub_cache_duration_callback( int $duration, string ) {
    // Your code here.
    return $duration;
}
add_filter( 'microsub_cache_duration', 'my_microsub_cache_duration_callback', 10, 2 );

Parameters

  • int $duration Cache duration in seconds.
  • string $type Feed type: 'news', 'events', or 'feed'. Other variable names: $type

Files

\apply_filters( 'microsub_cache_duration', $duration, $type )

← All Hooks

Clone this wiki locally