Config constant for license key
Would be great to allow the license key to be defined in a constant like BLOCK_LAB_LICENSE_KEY.
I like this idea – thanks for submitting it! One small consideration is that we'd need to hide / alter the Licence key setting area.
Hi @thefrosty, Thanks for suggestion! Could you elaborate on the use case of having a constant for the license key, and how that would help?
Thanks for using Block Lab!
Ah, maybe it would be to programmatically set the license key, to avoid having to add it in the Block Lab Settings > License key <input> element.
Hi @thefrosty, Thanks for suggestion! Could you elaborate on the use case of having a constant for the license key, and how that would help?
Thanks for using Block Lab!
You follow up is correct. I work in corporate installs and between all the environments if database copy downs don't happen we might not be able to activate a key. So we have a API key file for all our key constants.
I like this idea – thanks for submitting it! One small consideration is that we'd need to hide / alter the Licence key setting area.
There are plenty of code examples out there, check out any delicious brains plugins or the recently update metabox.io who added this feature in version 5.1.
Hi @lukecarbis,
What do you think about adding the BLOCK_LAB_LICENSE_KEY constant that Austin suggested? I think that could strengthen the case for using BL on big sites.
I think it's a great idea! (https://github.com/getblocklab/block-lab/issues/389#issuecomment-523198203)
Thanks! Right, you already said you liked the idea 😄