Title: 46n2's Replies | WordPress.org

---

# 46n2

  [  ](https://wordpress.org/support/users/46n2/)

 *   [Profile](https://wordpress.org/support/users/46n2/)
 *   [Topics Started](https://wordpress.org/support/users/46n2/topics/)
 *   [Replies Created](https://wordpress.org/support/users/46n2/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/46n2/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/46n2/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/46n2/engagements/)
 *   [Favorites](https://wordpress.org/support/users/46n2/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Fedex WooCommerce Shipping Method Plugin] SOAP ERROR](https://wordpress.org/support/topic/soap-error-6/)
 *  Thread Starter [46n2](https://wordpress.org/support/users/46n2/)
 * (@46n2)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/soap-error-6/#post-10437126)
 * Ahh it looks like you are right. Sorry for the confusion.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Subscriptions for WooCommerce] Order stuck at ‘Pending Payment’](https://wordpress.org/support/topic/order-stuck-at-pending-payment/)
 *  Thread Starter [46n2](https://wordpress.org/support/users/46n2/)
 * (@46n2)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/order-stuck-at-pending-payment/#post-10437089)
 * Based on the current version of your plugin it looks like I have confused it 
   with one having a similar name. I’ll reach out to their support instead.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ElasticPress] Multi-Site – Command Line to Sync single site](https://wordpress.org/support/topic/multi-site-command-line-to-sync-single-site/)
 *  [46n2](https://wordpress.org/support/users/46n2/)
 * (@46n2)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multi-site-command-line-to-sync-single-site/#post-7357318)
 * After some digging, I believe I found a solution to this problem.
 * ElasticPress uses WP_Query to fetch posts for indexing. When building the query,
   WP_Query compares the **post_status** argument against the results of the get_post_stati()
   WordPress function, which returns an array of registered post stati (statuses).
 * WooCommerce does this, but it does not appear to happen in time when running **
   elasticpress index** from the wp-cli. My solution was to hook the **ep_wp_cli_pre_index**
   action and call the WooCommerce registration function manually. Using the solution
   below, my site is currently indexing WooCommerce orders.
 * >  add_action( ‘ep_wp_cli_pre_index’, function( $args, $assoc_args ) {
   >  require_once(
   > ABSPATH . ‘wp-content/plugins/woocommerce/includes/class-wc-post-types.php’);
   > WC_Post_types::register_post_status(); }, 10, 1 );

Viewing 3 replies - 1 through 3 (of 3 total)