Clanbite Since 1.5.0

sanitize_toast_duration( mixed $value ): string

Sanitize the popup length: one of the offered values (seconds, custom or 0 = until closed), otherwise the default.

public

Class: Kernowdev\Clanbite\Extensions\Notifications\Admin

Parameters

$value (mixed) Required

Raw value.

Returns

string

Defined in inc/extensions/notifications/class-extension-notifications-admin.php

Changelog

VersionDescription
1.5.0Introduced.