wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
wp_print_speculation_rules is private and should not be used in themes or plugins directly.
wp_print_speculation_rules › WordPress Function
Od6.8.0
Przestarzałyn/a
› wp_print_speculation_rules ( Brak parametrów )
| Dostęp: |
|
| Zdefiniowane na: |
|
| Codex: |
Prints the speculation rules.
For browsers that do not support speculation rules yet, thescript[type="speculationrules"] tag will be ignored.Źródło
function wp_print_speculation_rules(): void {
$speculation_rules = wp_get_speculation_rules();
if ( null === $speculation_rules ) {
return;
}
wp_print_inline_script_tag(
(string) wp_json_encode(
$speculation_rules,
JSON_HEX_TAG | JSON_UNESCAPED_SLASHES
),
array( 'type' => 'speculationrules' )
);
}