wp_speculation_rules_configuration

wp_speculation_rules_configuration

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8.2

apply_filters('wp_speculation_rules_configuration') is found 1 times:

  • /wp-includes/speculative-loading.php line 54
    	 *                                           for 'mode' are 'prefetch' and 'prerender'. Other possible values for
    	 *                                           'eagerness' are 'eager', 'moderate', and 'conservative'. The value
    	 *                                           `null` is used to disable speculative loading entirely.
    	 */
    	$config = apply_filters( 'wp_speculation_rules_configuration', $config );
    
    	// Allow the value `null` to indicate that speculative loading is disabled.
    	if ( null === $config ) {
    		return null;
    	}