DIRECTORY_SEPARATOR
DIRECTORY_SEPARATOR = '/'
Defines reusable directory separator.
mainwp_do_not_have_permissions(string $where = '', boolean $echo = true) : string|boolean
Detect permission level & display message to end user.
string | $where | User's location. |
boolean | $echo | Defines weather or not to echo error message. |
$msg|false
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.