Created
February 10, 2015 20:29
-
-
Save akinayturan/7fb0d6368990aeb9f698 to your computer and use it in GitHub Desktop.
WP ~ Eklentilerin Gereksiz Kodlarını Kaldırma
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
<?php | |
//epfarki.com //Gereksiz .css ve .js dosyalarını kaldırma | |
function stil_sil() { | |
if(!is_page('İletişim')){ | |
wp_deregister_style( 'contact-form-7' ); | |
} | |
wp_deregister_style( 'cptchStylesheet' ); | |
wp_deregister_style( 'codecolorer' ); | |
wp_deregister_script( 'wp-recentcomments-jquery' ); | |
} | |
add_action('wp_print_styles', 'stil_sil'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment