-
Notifications
You must be signed in to change notification settings - Fork 0
Utils
linchpin edited this page Feb 22, 2023
·
10 revisions
Utils Class
- Full name:
\CourierNotices\Helper\Utils
Return whether or not the default WP Cron process is being used.
public static is_wp_cron_disabled(): bool
Typically with alternate/true crons the default WordPress cron will be disabled with the DISABLE_CRON constant
- This method is static.
Get an array of safe markup and classes to be used on settings pages.
public static get_safe_markup(): mixed|void
- This method is static.
Get a random hex value This is primarily used when adding a new notice type
public static get_random_color(): mixed
- This method is static.
Output our debug if needed.
public static courier_notices_debug_log(mixed|array|object|string $output, string $label = '', bool $separator = true): mixed
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$output |
mixed|array|object|string | |
$label |
string | |
$separator |
bool |
Automatically generated from source code comments on 2023-02-22 using phpDocumentor and saggre/phpdocumentor-markdown