Created
December 26, 2016 20:55
-
-
Save ofyalcin/dbb12819c31904150eafdc5a890e5a30 to your computer and use it in GitHub Desktop.
Wordpress versiyon numaralarını kaldırma kodu. Detaylı bilgi için https://blogkurdu.net/javascript-dosyalarini-footera-tasimak-wordpress/ adresini ziyaret edin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Version parametresini kaldır kodu başlangıcı | |
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 ); | |
// Version parametresini kaldır kodu sonu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment