Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1323375
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 questionI 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 questionI 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 badges1 Answer
Reset to default 0Not 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
版权声明:本文标题:wp cli - Skip WooCommerce 4.5.x onboarding with WP-CLI 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742122369a2421777.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论