apply_filters( 'clanbite_toast_custom_duration_range', array{min: int, max: int} $range )Filters the range allowed for a custom popup length (Settings → Notifications → Popups).
Filter PHP
Parameters
$range(array{min: int, max: int})Shortest and longest length in whole seconds (default 1 to 300).
Example
add_filter( 'clanbite_toast_custom_duration_range', function ( $range ) {
// Change $range here.
return $range;
}, 10, 1 );Defined in inc/toasts.php
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |