Last active
August 29, 2015 14:12
-
-
Save vralle/f4c3872a5996969b4f5e to your computer and use it in GitHub Desktop.
Remove Akismet js
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 | |
// Remove Akismet js | |
function vralle_remove_akismet_script () { | |
remove_action( 'comment_form', array( 'Akismet', 'load_form_js' ) ); | |
} | |
if ( ! is_admin() && ( defined( 'AKISMET_VERSION' ) || function_exists( 'akismet_http_post' ) ) ) { | |
add_action( 'wp_enqueue_scripts', 'vralle_remove_akismet_script' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment