wp_speculation_rules_href_exclude_paths
wp_speculation_rules_href_exclude_paths
Hook Type: filter
Displaying hooks found in version: wordpress-6.8.2apply_filters('wp_speculation_rules_href_exclude_paths') is found 1 times:
- /wp-includes/speculative-loading.php line 154
* * @param string[] $href_exclude_paths Additional path patterns to disable speculative loading for. * @param string $mode Mode used to apply speculative loading. Either 'prefetch' or 'prerender'. */ $href_exclude_paths = (array) apply_filters( 'wp_speculation_rules_href_exclude_paths', array(), $mode ); // Ensure that: // 1. There are no duplicates. // 2. The base paths cannot be removed. // 3. The array has sequential keys (i.e. array_is_list()). $href_exclude_paths = array_values(