Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Add filter soil/relative-url-filters #104

Merged
merged 1 commit into from
Sep 23, 2015
Merged

Conversation

QWp6t
Copy link
Member

@QWp6t QWp6t commented Aug 12, 2015

This will allow users to modify the filters to which the relative-urls.php module applies.

An example for disabling it on scripts, styles, and images would be the following:

add_filter('soil/relative-url-filters', function ($filters) {
  return array_diff($filters, ['script_loader_src', 'style_loader_src', 'wp_get_attachment_url']);
});

retlehs added a commit that referenced this pull request Sep 23, 2015
Add filter soil/relative-url-filters
@retlehs retlehs merged commit 57e0398 into master Sep 23, 2015
@retlehs retlehs deleted the guap60/filters-filter branch September 23, 2015 03:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants