Add license key programatically?

Is it possible to add the license key programatically, something like

define( ‘BB_LICENSE’, ‘123456789’ );

You can use wpcli to register a site.

Thanks. I was looking for a solution that would add the code programatically… but I ended up just manually adding it into the options table via code and that worked just fine. It would be nice if there was a DEFINE option though!

Yea that wont work, the site HAS to register itself on the updates server or updates will not work.

Gotcha. I mean it does work for the nag at least, but good to know, thanks!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.