$store_url
$store_url : string
Store URL
Class UM_Functions
$store_url : string
Store URL
$request_timeout : int
WP remote Post timeout
is_rate_limited(string $context, int|null $requests_num = 10) : bool
Check if the user rate limit has been reached based on the provided context
| string | $context | The context for which the rate limit check is being performed |
| int|null | $requests_num | Number requests per minute. Default 10. |
True if the rate limit has been reached, false otherwise
array_insert_before(array $array, string $key, array $insert_array) : array
| array | $array | |
| string | $key | |
| array | $insert_array |
| None found |
| since | 2.1.0 |
|---|
str_replace_first(string $search, string $replace, string $subject) : string
Replace the first match in the string, alternative for the `str_replace()` function
| string | $search | |
| string | $replace | |
| string | $subject |
| None found |
get_allowed_html(string $context = '', bool $ignore_global = false) : array
Retrieves the allowed HTML tags and attributes for a specific context.
| string | $context | The context to evaluate. For example, 'wp-admin', 'templates'. Determines which set of HTML tags and attributes are returned. |
| bool | $ignore_global | Optional. Whether to ignore globally allowed HTML tags and attributes. Defaults to false. |
An associative array of allowed HTML tags and their respective attributes. The array structure maps tag names to arrays of attribute names as keys, with boolean values indicating attribute allowance.
| None found |