rest_cookie_collect_status

Advertisement

Summery Summery

Collects cookie authentication status.

Syntax Syntax

rest_cookie_collect_status()

Description Description

Collects errors from wp_validate_auth_cookie for use by rest_cookie_check_errors.

Source Source

File: wp-includes/rest-api.php

	if ( empty( $api_root ) ) {
		return;
	}

	header( sprintf( 'Link: <%s>; rel="https://api.w.org/"', esc_url_raw( $api_root ) ), false );

	$resource = rest_get_queried_resource_route();

	if ( $resource ) {
		header( sprintf( 'Link: <%s>; rel="alternate"; type="application/json"', esc_url_raw( rest_url( $resource ) ) ), false );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.