Clanbite General Since 1.5.0

apply_filters( 'clanbite_toasts_available', bool $available )

Filters whether popups are available (Notifications is on and "Show popups" is not switched off).

Filter PHP

Parameters

$available (bool)

False when the Notifications extension or its "Show popups" switch is off.

Example

add_filter( 'clanbite_toasts_available', function ( $available ) {
	// Change $available here.
	return $available;
}, 10, 1 );

Defined in inc/toasts.php

Changelog

VersionDescription
1.5.0Introduced.