Remove enqueued script
-
Hi,
I would like to dequeue the google-recaptcha script from class-wcmp-shortcode-vendor-registration.php, because this is clashing with my custom recaptcha on my site. I tried adding an action at my childtheme functions.php to dequeue the script but still can’t work. The code is below:
add_action( 'wp_print_scripts', 'remove_wcmp_recaptcha'); function remove_wcmp_recaptcha() { wp_dequeue_script( 'google-recaptcha' ); }
and I tried with wp_enqueue_scripts with different priorities, but still can’t work.
Thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Remove enqueued script’ is closed to new replies.