Uses
| Uses | Description |
|---|---|
| wp-includes/plugin.php: current_action() | Retrieve the name of the current action. |
Collects cookie authentication status.
Collects errors from wp_validate_auth_cookie for use by rest_cookie_check_errors.
File: wp-includes/rest-api.php
function rest_cookie_collect_status() {
global $wp_rest_auth_cookie;
$status_type = current_action();
if ( 'auth_cookie_valid' !== $status_type ) {
$wp_rest_auth_cookie = substr( $status_type, 12 );
return;
}
$wp_rest_auth_cookie = true;
} | Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/rest_cookie_collect_status