admin管理员组

文章数量:1323375

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

I have a bash (.sh) script that I use to install WordPress and install/activate various plugins through WP-CLI commands. Now I want to extend that by installing/activating WooCommerce and setting various wp_options through wp option set command.

I want to enter basic stuff (address etc) that is asked in the WooCommerce onboarding setup steps, but in bash. I don't want to deal with the actual onboarding steps in wp-admin.

Already tried:

wp option set woocommerce_onboarding_opt_in "yes"
wp option set woocommerce_onboarding_profile "" // aleady tried setting it to serialized data as well
wp option set woocommerce_store_address "street address number"
wp option set woocommerce_store_address_2 ""
wp option set woocommerce_store_city "Mycity"
wp option set woocommerce_store_postcode "1234"
wp option set woocommerce_default_country "BE"

But that doesn't seem to be enough. Anyone an idea on how to properly install and configure WooCommerce with WP-CLI without having to deal with the onboarding afterwards in wp-admin?

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

I have a bash (.sh) script that I use to install WordPress and install/activate various plugins through WP-CLI commands. Now I want to extend that by installing/activating WooCommerce and setting various wp_options through wp option set command.

I want to enter basic stuff (address etc) that is asked in the WooCommerce onboarding setup steps, but in bash. I don't want to deal with the actual onboarding steps in wp-admin.

Already tried:

wp option set woocommerce_onboarding_opt_in "yes"
wp option set woocommerce_onboarding_profile "" // aleady tried setting it to serialized data as well
wp option set woocommerce_store_address "street address number"
wp option set woocommerce_store_address_2 ""
wp option set woocommerce_store_city "Mycity"
wp option set woocommerce_store_postcode "1234"
wp option set woocommerce_default_country "BE"

But that doesn't seem to be enough. Anyone an idea on how to properly install and configure WooCommerce with WP-CLI without having to deal with the onboarding afterwards in wp-admin?

Share Improve this question asked Sep 12, 2020 at 15:54 andyderuyterandyderuyter 1156 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Not very sure, but maybe you need to install WooCommerce pages?

wp option set woocommerce_onboarding_opt_in "yes"
wp option set woocommerce_onboarding_profile ""
wp option set woocommerce_store_address "street address number"
wp option set woocommerce_store_address_2 ""
wp option set woocommerce_store_city "Mycity"
wp option set woocommerce_store_postcode "1234"
wp option set woocommerce_default_country "BE"

wp wc --user=admin tool run install_pages

本文标签: wp cliSkip WooCommerce 45x onboarding with WPCLI