Feature Request: chance to rewrite URL
-
Hi. I am using WP Hide WordPress plugin which allows me to use alternate URL path names for wp-content & wp-includes directories for security/obscurity reasons. From my limited understanding the way the plugin works is it relies on .htaccess URL rewrite rules and tweaking of URLs in the outgoing content/generated source. (Page source modification typically occurs after after all other plugins and wordpress logic is executed.) Thus WP Hide plugin does NOT rely on the URLs found in WP_Styles or WP_Scripts but performs basic search/replace against the page output after the fact.
As you know, FVM relies on WP_Styles & WP_Scripts for URL discovery. The URLs in WP_* use the original /wp-content/ & /wp-includes/ paths causing 404s and no capturing the css/script content. As a simple suggested solution, it would be nice if FVM would introduce a filter that allows for developers to tweak the URL prior to fetch… making integrations with other plugins possible. I would create a filter that will rewrite the URL based off WP Hide plugin helper functions.
Something as simple as this one-liner added at the end of
function fastvelocity_min_get_hurl
should do the trick:$hurl = apply_filters('fvm_get_url', $hurl);
Thanks!
- The topic ‘Feature Request: chance to rewrite URL’ is closed to new replies.