WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.39k stars 4.15k forks source link

How to set Site Title from `wp-env` config? #33112

Open shivapoudel opened 3 years ago

shivapoudel commented 3 years ago

Description

I tried to set "name": "Everest Forms" in .wp-env.json although it was not documented. In the config generation script, there was config.name but unfortunately site title is set back to plugin slug, not the provided config value.

Step-by-step reproduction instructions

Expected behaviour

Actual behaviour

Screenshots or screen recording (optional)

Code snippet (optional)

WordPress information

Device information

tellthemachines commented 1 year ago

Hi there! Setting name in .wp-env.json (or in .wp-env.override.json if you want it to persist as a local env setting) should work. I'm marking this as a bug as it's not working for me locally either.

What you can do as a temporary workaround is run wp-env run cli wp option update blogname "Everest\ Forms" in the CLI just after you wp-env start.