• Resolved Aljnk

    (@aljnk)


    I have some page witch generated programmatically without WP.
    Your Plugin don’t work for this page.
    In console I see:

    GET https://www.google.com/recaptcha/api.js?render=XXX&ver=3.0
    net::ERR_ABORTED 400

    Your solution for …/recaptcha-v2.php file
    add_action( 'wp_enqueue_scripts', 'iqfix_wpcf7_recaptcha_enqueue_scripts', 9 );
    also don’t work.

    but if I change it to:

    remove_action( 'wp_loaded','wpcf7_recaptcha_enqueue_scripts', 10 );
    add_action( 'wp_loaded','iqfix_wpcf7_recaptcha_enqueue_scripts', 10 );

    works good.

    Can you and this solution in next updates?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    This was actually a recent change. The lower priority allow us to enqueue our reCaptcha before Contact Form 7 reCaptcha. Given a path to replicate this issue would give us a better understanding of how to tackle it. Without being able to replicate your issue and look into a solution ourselves we’re hesitant to patch this.

    Since the hooks are in the global namespace a better solution may be to just create your own plugin that removes and adds these hooks at the priority you need.

    Hopefully you understand and the alternative path in the 2nd paragraph above is a possible solution for you. Should you have any questions, comments, or concerns please reply back to this thread and we can assist you further. Have a wonderful rest of your week!

    Thread Starter Aljnk

    (@aljnk)

    Great idea – instead of improving the performance of your plugins, you suggest create your own – Best Practice ??

    Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    We believe that your case is a niche one and does not reflect the community using this plugin as a whole. This is the reason we suggested a simple plugin to change the hook priority so that it works in your unique case. Performance ( speed ) is a non-issue here.

    Given a path to replicate your issue then we could look into solutions to accommodate your request.

    Thread Starter Aljnk

    (@aljnk)

    Believe – a good thing for a real programmer ??

    P.S. Of course, I can do it myself – don’t worry ?? It’s just the first time I meet people who don’t want to fix an error and explain it so strangely. Good luck to you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Don’t work on some pages’ is closed to new replies.