Support » Plugin: Contact Form 7 - reCaptcha v2 » Retrieve recaptcha key from network (multisite)

  • Resolved Colir

    (@colir)


    Hi.
    I’ve a suggestion for enhance the plugin.

    It could be really great to retrieve the recaptcha site key and secret key, from the root site on a multisite install, using

    
    get_site_option('recaptcha')
    

    rather than

    
    $this->sitekeys = WPCF7::get_option( 'recaptcha' );
    

    For now, we need to setup the key on each child website.

    Thanks you.

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

    (@iqcomputing)

    Thank you for bringing this to our attention!

    – The Technical Explanation –
    To get this plugin onto the Repository as quickly as we could after Contact Form 7 deprecated ReCaptcha v2 we just ended up applying much of the same code as the old version of Contact Form 7. The Contact Form 7 plugin uses their own get_option() method as a way to pull from it’s own saved and serialized array of values.

    – What We’ll Do –
    We will need to look at this carefully so we can both apply this for multisite ( as to help your situation ) but also ensure that it doesn’t break backward compatibility for non-multisite setups. It’s something that is unfortunately not an immediate fix we can push out to help you at this moment but possibly something that will help future users who use multisite setups.

    We apologize for any inconvenience this may have caused and we will keep this thread open so you get notified whenever we have either a solution or more information.

    Plugin Author IQComputing

    (@iqcomputing)

    Hello!

    We’ve just pushed a new version of the plugin with more Multisite support. We opted to go with allowing the Network Admin to set default values for WPCF7 reCaptcha settings so site admins could change those settings on a per-site basis should they choose to. We understand that this solution may not longer benefit you but your suggestion hopefully benefits other Multisite admins in the future. We’ll go ahead and mark this thread as resolved for now.

    Thanks again for your suggestion, have a great weekend!

    Sounds good, but where to find the global network settings?

    Plugin Author IQComputing

    (@iqcomputing)

    @teknology In the Network Admin Panel, where you would add new Network Plugins or manage sites, is a submenu item under “Plugins” labelled “WPCF7 reCaptcha Settings”. See the link below for additional clarification:

    https://i.imgur.com/wMxMr6q.jpg

    I use latest version of contact form 7 and reCaptcha v3. But I can’t see “WPCF7 reCaptcha Settings” option on my network.

    Any suggestion?

    Thank you in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.