DIRECTORY_SEPARATOR
DIRECTORY_SEPARATOR = '/'
Defines reusable directory separator.
apply_filters_deprecated(string $hook_name, array $args, string $version, string $replacement = '', string $message = '')
Support old WP version 4.0.
Fires functions attached to a deprecated filter hook.
When a filter hook is deprecated, the apply_filters() call is replaced with apply_filters_deprecated(), which triggers a deprecation notice and then fires the original filter hook.
string | $hook_name | The name of the filter hook. |
array | $args | Array of additional function arguments to be passed to apply_filters(). |
string | $version | The version of WordPress that deprecated the hook. |
string | $replacement | Optional. The hook that should have been used. Default empty. |
string | $message | Optional. A message regarding the change. Default empty. |
mainwp_do_not_have_permissions(string $where = '', boolean $echo_out = true) : string|boolean
Detect permission level & display message to end user.
string | $where | User's location. |
boolean | $echo_out | Defines weather or not to echo error message. |
$msg|false
mainwp_module_log_filter_var(string $var_value, integer $filter = null, mixed $options = array()) : \Returns
Filters a variable with a specified filter.
This is a polyfill function intended to be used in place of PHP's filter_var() function, which can occasionally be unreliable.
string | $var_value | Value to filter. |
integer | $filter | The ID of the filter to apply. |
mixed | $options | Associative array of options or bitwise disjunction of flags. If filter accepts options, flags can be provided in "flags" field of array. For the "callback" filter, callable type should be passed. The callback must accept one argument, the value to be filtered, and return the value after filtering/sanitizing it. |
the filtered data, or FALSE if the filter fails.
mainwp_module_log_get_iso_8601_extended_date(integer|boolean $time = false, integer $offset) : string
Converts a time into an ISO 8601 extended formatted string.
integer|boolean | $time | Seconds since unix epoch. |
integer | $offset | Timezone offset. |
an ISO 8601 extended formatted time
wp_verify_nonce(string $nonce, string|integer $action = -1) : false|integer
Verify that correct nonce was used with time limit.
The user is given an amount of time to use the token, so therefore, since the UID and $action remain the same, the independent variable is the time.
string | $nonce | Nonce that was used in the form to verify. |
string|integer | $action | Should give context to what is taking place and be the same when nonce was created. |
False if the nonce is invalid, 1 if the nonce is valid and generated between 0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.