wp-config.php constant for license key?

This topic is: not resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Evan Herman 7 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9293

    ualr
    Participant
    Post count: 1

    Is there a constant I could define in my wp-config.php that would be checked for the license key? This would let me set the license key once for a single multisite install, and not have to add it to each subsite/blog. Kindof like Gravity Forms does.

    Or would this be unnecessary for getting support?

    #9326

    Evan Herman
    Keymaster
    Post count: 568

    Hi Ualr,

    There’s no constant that you can define, but you can write a small snippet to copy over the license key to each sub site in the network.

    That, or you can define a custom constant using the license key – and use that to populate the license key option (update_option( 'wp_svg_icons_license_key', LICENSE_KEY_CONSTANT );).

    I didn’t consider that, but I can certainly see how that would be helpful. I am throwing that on our “to do” list for the next release.

    I will remember post back here when I get that out with instructions on how to define the constant. I’m sure it will be the exact same as the way GF does it, but obviously with a different constant name.

    Thanks for the idea, that will be helpful to others in future releases!

    Evan

    • This reply was modified 7 years, 11 months ago by  Evan Herman.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.