[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Speculative loading functions.
File Size: | 254 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
wp_get_speculation_rules_configuration() X-Ref |
Returns the speculation rules configuration. return: array<string, string>|null Associative array with 'mode' and 'eagerness' keys, or null if speculative |
wp_get_speculation_rules() X-Ref |
Returns the full speculation rules data based on the configuration. Plugins with features that rely on frontend URLs to exclude from prefetching or prerendering should use the {@see 'wp_speculation_rules_href_exclude_paths'} filter to ensure those URL patterns are excluded. Additional speculation rules other than the default rule from WordPress Core can be provided by using the {@see 'wp_load_speculation_rules'} action and amending the passed WP_Speculation_Rules object. return: WP_Speculation_Rules|null Object representing the speculation rules to use, or null if speculative loading |
wp_print_speculation_rules() X-Ref |
No description |
Generated : Fri Feb 21 08:20:01 2025 | Cross-referenced by PHPXref |