HPOS Compatibility
-
I am evaluating plugins in preparation for migrating to HPOS.
Woolentor Addons 2.7.0 does not appear to be compatible with HPOS.
- includes/modules/sales-notification/class.sale_notification.php
- woolentor-blocks/includes/helper-functions.php
Both of these files are querying the posts table for shop_order post types
e.g.
$args = array( 'post_type' => 'shop_order', 'post_status' => array('wc-completed', 'wc-pending', 'wc-processing', 'wc-on-hold'), 'orderby' => 'ID', 'order' => 'DESC', 'posts_per_page' => woolentor_get_option( 'notification_limit','woolentor_sales_notification_tabs','5' ), 'date_query' => array( 'after' => date('Y-m-d', strtotime('-'.woolentor_get_option('notification_uptodate','woolentor_sales_notification_tabs','5' ).' days')) ) ); $posts = get_posts($args);
$results = $wpdb->get_col( " SELECT MAX(ID) FROM {$wpdb->prefix}posts WHERE post_type LIKE 'shop_order' AND post_status IN ('$statuses')" ); return reset($results);
Do you have plans for updating ShopLentor to be fully HPOS compatible?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘HPOS Compatibility’ is closed to new replies.