Created
February 27, 2021 17:25
-
-
Save Alimir/c6e7b212ced9ac8a80cee65478e518ab to your computer and use it in GitHub Desktop.
Add filter on recaptcha enqueue scripts
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 | |
function wp_ulike_pro_custom_enqueue_recaptcha( $status, $target_page ){ | |
// Set your custom pages by id, slug, or title | |
if( is_page( array( 42, 'about-me', 'Contact' ) ) ){ | |
return true; | |
} | |
return false; | |
} | |
add_filter( 'wp_ulike_pro_enqueue_recaptcha', 'wp_ulike_pro_custom_enqueue_recaptcha', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment