Skip to content

Instantly share code, notes, and snippets.

@vralle
Last active August 29, 2015 14:12
Show Gist options
  • Save vralle/f4c3872a5996969b4f5e to your computer and use it in GitHub Desktop.
Save vralle/f4c3872a5996969b4f5e to your computer and use it in GitHub Desktop.
Remove Akismet js
<?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