A WordPress-centric search engine for devs and theme authors



wp_resource_hints ›

Since4.6.0
Deprecatedn/a
apply_filters( 'wp_resource_hints', $urls, $relation_type )
Parameters: (2)
  • (array) $urls URLs to print for resource hints.
    Required: Yes
  • (string) $relation_type The relation type the URLs are printed for, e.g. 'preconnect' or 'prerender'.
    Required: Yes
Defined at:
Codex:

Filters domains and URLs for resource hints of relation type.





Source

$urls = apply_filters( 'wp_resource_hints', $urls, $relation_type );