woocommerce_enable_nocache_headers

woocommerce_enable_nocache_headers

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_enable_nocache_headers') is found 1 times:

  • /includes/class-wc-cache-helper.php line 58
    		 * Allow plugins to enable nocache headers. Enabled for Google weblight.
    		 *
    		 * @param bool $enable_nocache_headers Flag indicating whether to add nocache headers. Default: false.
    		 */
    		if ( apply_filters( 'woocommerce_enable_nocache_headers', false ) ) {
    			$set_cache = true;
    		}
    
    		/**
    		 * Enabled for Google weblight.
    		 *