-
Notifications
You must be signed in to change notification settings - Fork 0
microsub_cache_duration
github-actions[bot] edited this page Jan 2, 2026
·
1 revision
Filters the cache duration for Microsub feeds.
/**
* 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 );-
int$durationCache duration in seconds. -
string$type Feed type: 'news', 'events', or 'feed'. Other variable names:$type
\apply_filters( 'microsub_cache_duration', $duration, $type )