Hi !
I’m wondering if anybody succeeds in activating ACF using WP CLI commands.
By “activation”, I mean “with a valid license KEY”.
I’m able to update “acf_pro_license” option, but if I read the code of acf_settings_update() I think a remote HTTP call is needed to fully activate the instance of the plugin (for my website, I mean).
And the quantity of code to instanciate is little bit overkill to be loaded using WP CLI.
Anybody has an idea ?
I don’t remember seeing any topics on this subject here. I did some looking around and I think you’re best bet on a solution might be to talk to the people involved in this project https://github.com/hoppinger/advanced-custom-fields-wpcli
I have a solution I wrote about here: https://anchor.host/2017/05/16/preloading-advanced-custom-fields-pro-license-key/. The custom code triggers after a wp search-replace
cli command runs. Fits in nicely to my workflow seeing as the ACF Pro key needs reapplied any time the wp option get home
or wp option get siteurl
changes.