Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Filter for adding global excludes #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

f13dev
Copy link
Contributor

@f13dev f13dev commented Oct 20, 2022

For WP multisites that include a large number of sites it is tedious adding new excludes to each and every site.

This allows new excludes to be added to every site with a few lines of code:

function cdn_linker_excludes($excludes) {
$excludes[] = '.some-extension';
return $excludes;
}

add_filter('cdn-linker-global-excludes', 'cdn_linker_excludes');

For WP multisite's that include a large number of sites it is tedious adding new excludes to each and every site.

This allows new excludes to be added to every site with a few lines of code:

function cdn_linker_excludes($excludes) {
	$excludes[] = '.some-extension';
	return $excludes;
}

add_filter('cdn-linker-global-excludes', 'cdn_linker_excludes');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant