Skip to content

Instantly share code, notes, and snippets.

@Alimir
Created February 27, 2021 17:25
Show Gist options
  • Save Alimir/c6e7b212ced9ac8a80cee65478e518ab to your computer and use it in GitHub Desktop.
Save Alimir/c6e7b212ced9ac8a80cee65478e518ab to your computer and use it in GitHub Desktop.
Add filter on recaptcha enqueue scripts
<?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