wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_cookie_collect_status › WordPress Function

Da4.4.0
Deprecaton/a
rest_cookie_collect_status ( Nessun parametro )
Vedi:
Definito a:
Codex:

Collects cookie authentication status.

Collects errors from wp_validate_auth_cookie for use by rest_cookie_check_errors.


Sorgenti

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;
}