Last active
July 19, 2021 06:32
-
-
Save charliesjc/68fdb39e9d8bb4a7ace71a5e90d06d7f to your computer and use it in GitHub Desktop.
Remove Google reCaptcha badge on Wordpress
This file contains hidden or 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 | |
function semper_load_recaptcha_badge() { | |
if ( !is_page( array( 'checkout', 'login' ) ) ) { | |
wp_dequeue_script('google-recaptcha'); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'semper_load_recaptcha_badge', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment