Next release to include Remove Version from CSS
-
G’day Scott,
I noticed that your plugin could include another feature to the remove WP versions from all CSS headers. At this moment, I’d to add the following code into the active theme’s functions.php
// Remove WP version param from any enqueued scripts function vc_remove_wp_ver_css_js( $src ) { if ( strpos( $src, 'ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; } add_filter( 'style_loader_src', 'vc_remove_wp_ver_css_js', 9999 ); add_filter( 'script_loader_src', 'vc_remove_wp_ver_css_js', 9999 );
This will beef-up your plugin 🙂
Cheers,
Jason
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Next release to include Remove Version from CSS’ is closed to new replies.