• Resolved gladsong

    (@gladsong)


    Hi,

    Can ‘cfturnstile_key’ & ‘cfturnstile_secret’ overrides be set in .env ?

    Or, otherwise in functions.php etc?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Elliot Sowersby

    (@elliotvs)

    Hi,

    Thanks for the message.

    There is no built-in way to do this currently but I will take a look into possibly adding a solution for this in the future.

    Thread Starter gladsong

    (@gladsong)

    Hi,

    Thanks for considering it.

    fwiw, I composer-install WP via bedrock

    bedrock includes dotenv support,

    https://github.com/roots/bedrock/blob/master/composer.json#L36

    localized config, using .env, is in '(wp)/config/application.php'

    e.g.

    application.php
    ...
    + Config::define('cfturnstile_key', env('CF_TURNSTILE_SITEKEY'));
    + Config::define('cfturnstile_secret', env('CF_TURNSTILE_SECRETKEY'));
    ...

    .env
    ...
    + CF_TURNSTILE_SITEKEY='0x4...'
    + CF_TURNSTILE_SECRETKEY='0x4...'
    ...

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dotenv support for ‘cfturnstile_key’ & ‘cfturnstile_secret’ ?’ is closed to new replies.