# customify/2.10.7/includes/integrations/wp-fastest-cache.php

Customify, version 2.10.7. 31 lines.

- Page: https://pluginprobe.com/plugins/customify/2.10.7/code/includes/integrations/wp-fastest-cache.php
- Raw: https://pluginprobe.com/plugins/customify/2.10.7/raw/includes/integrations/wp-fastest-cache.php
- Modified: 2020-05-01T16:30:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/customify/2.10.7/code/includes/integrations/wp-fastest-cache.php#L10-L20`.

```php
<?php
/**
 * This is logic for integrating with the WP Fastest Cache plugin.
 *
 * @link https://wordpress.org/plugins/wp-fastest-cache/
 *
 * @see         https://pixelgrade.com
 * @author      Pixelgrade
 * @since       2.7.1
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

// Try to exclude the webfontloader script by adding a default rule in the plugin options.
add_filter( 'default_option_WpFastestCacheExclude', function ( $default ) {
	$webfontloader_script_url = trailingslashit( dirname( plugin_basename( PixCustomifyPlugin::instance()->get_file() ) ) ) . 'js/vendor/webfontloader';
	if ( empty( $default ) ) {
		$default = json_encode( [
			[
				'prefix' => 'contain',
				'content' => $webfontloader_script_url,
				'type' => 'js',
			]
		] );
	}

	return $default;
}, 10, 1 );

```
