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

    (@eherman24)

    Hey Viktor,

    Thanks for posting here with the idea. We will add it to our running to do for future releases. I can see how that would be benficial.

    Thanks!
    Evan

    Plugin Author Evan Herman

    (@eherman24)

    Hi Viktor,

    I’m pushing out an update today that will allow for a new PHP constant YIKES_MC_API_KEY. You can define this inside of wp-config.php, which will then be used throughout the plugin.

    Example:
    define( 'YIKES_MC_API_KEY', '12345679-us2' );

    This feature will get included inside of version 6.1.2, which I will hopefully get pushed out today.

    Thanks!
    Evan

    Thread Starter Viktor Szépe

    (@szepeviktor)

    Thank you!

    Is it a forced value that is permanent
    or could it be overridden on the plugin’s options page?

    Plugin Author Evan Herman

    (@eherman24)

    It’s going to be a forced value. Once defined, the API key field on the options page will be a read-only field – so it can’t be changed or overridden, as well as a small notice letting you know the PHP constant is being used in place of the actual API key field.

    So essentially the new PHP constant takes precedence over everything else.

    Here is a screenshot of the new settings page, when the PHP constant is defined inside of wp-config.php:
    https://cldup.com/d2_tr0l5sk.png

    Thanks,
    Evan

    Thread Starter Viktor Szépe

    (@szepeviktor)

    Nicely done.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Constant for yikes-mc-api-key’ is closed to new replies.