W3cubDocs

/WordPress

apply_filters( 'wp_resource_hints', array $urls, string $relation_type )

Filters domains and URLs for resource hints of relation type.

Description

Parameters

$urls

(array) URLs to print for resource hints.

$relation_type

(string) The relation type the URLs are printed for, e.g. 'preconnect' or 'prerender'.

Source

File: wp-includes/general-template.php

View on Trac

Changelog

Version Description
4.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_resource_hints