Totally new to Bedrock. I am running just Bedrock, with a self-coded theme on Laravel Forge.
I want to set a serialised key’s value in the
wp_optionsDB table using the .env variable. For example in staging:
Then depending on the environment, set the wp_option to reflect that setting.
I tried conditionally running a wp cli command:
wp patch update woocommerce_stripe_settings testmode yes
But this feels wrong and I wasn’t sure when that command should be run? Maybe
after_theme_switch action or maybe on the deploy script in in Laravel Forge?
Can anyone tell me how to handle this?