Summery Summery
Collects cookie authentication status.
Syntax Syntax
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
Version | Description |
---|---|
4.4.0 | Introduced. |