Easy IO (ExactDN) Exclude

When you enable the option to "Include All Resources", Easy IO will rewrite URLs for anything within the wp-content and wp-includes folder.

You might find that you need to exclude some of these resources, and to that end, you can exclude them in the settings, or define a "constant" in your wp-config.php file as follows.

EXACTDN_EXCLUDE allows you to specify patterns to ignore for any resources (images/CSS/JS/fonts) found in the wp-content/ folder. Valid values include a simple string, or an array of string pattern matches. Wildcards (*) are implied, so do not include them or you will get unexpected results.

A simple value for one exclusion would look like this:

define( 'EXACTDN_EXCLUDE', 'plugins/example-plugin/includes/script.js' );

Or if you wanted to exclude all the files for this "example plugin", something like this:

define( 'EXACTDN_EXCLUDE', 'plugins/example-plugin/' );

If you need to specify multiple locations to be excluded, you can do this:

define( 'EXACTDN_EXCLUDE', array( 'plugins/debug-bar/', 'plugins/wordfence/' ) );

Or if that's not pretty enough for you, like so:

define( 'EXACTDN_EXCLUDE', array(
) );

The latter has the advantage also of making it easier to add more exclusions without messing up the syntax (at least I think so).

Nothing in wp-includes can be excluded, if there is a "core" resource that you think ought to be excluded, please let us know.

Still need help? Contact Us Contact Us