• Resolved flynsarmy

    (@flynsarmy)


    I only use BWP-Recaptcha on my contact form (which is on a single page) however the plugin loads api.js (which in turn loads more JS files) and don’t want to load the JS on any other pages than my contact page. I’m wondering how I can remove the wp_footer action hook you use?

    It’s added with

    add_action('wp_footer', array($this, 'printRecaptchaJS'), $priority);

    so I tried

    global $bwp_capt;
    remove_action('wp_footer', [$bwp_capt->get_captcha_provider(), 'printRecaptchaJS'], 100000);

    but that didn’t work. Could you perhaps add some way to easily remove (or not load in the first place) the JS in a future version if this is not possible?

    https://ww.wp.xz.cn/plugins/bwp-recaptcha/

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Remove api.js?’ is closed to new replies.