Skip to content
This repository has been archived by the owner on Jun 15, 2018. It is now read-only.

Not indexing orders via wp-cli in multi-site installation. #27

Open
jdmadison opened this issue Jun 15, 2016 · 0 comments
Open

Not indexing orders via wp-cli in multi-site installation. #27

jdmadison opened this issue Jun 15, 2016 · 0 comments

Comments

@jdmadison
Copy link

Just posting to say that I found a solution to this issue today.

WooCommerce custom post statuses have not yet been registered when the _index_helper function in wp-cli.php executes the query. Consequently, when attempting to index shop_order post types, none are found. My solution was to hook ep_wp_cli_pre_index and call WC_Post_types::register_post_status().

Posted Here: https://wordpress.org/support/topic/multi-site-command-line-to-sync-single-site?replies=2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant