Add support for WooCommerce HPOS
With plugin active, go to WooCommerce > Settings > Advanced > Features. Under “Experimental Features” there’s an option for “High-Performance order storage (COT)” but it’s grayed out and cites this plugin:
This feature shouldn’t be enabled, the Admin Bar Addition for WooCommerce plugin is active and isn’t compatible with it. Manage incompatible plugins
Assuming this plugin isn’t interacting with Orders much, the only thing I can think that needs updating would be the link in the toolbar nodes to the orders
`
'orders' => array(
'title' => __( 'Orders', 'woocommerce' ),
'href' => admin_url( 'edit.php?post_type=shop_order' ),
'nodes' => array(
'orders' => array(
'title' => __( 'Orders', 'woocommerce' ),
'href' => admin_url( 'edit.php?post_type=shop_order' ),
),
'add-order' => array(
'title' => __( 'Add order', 'woocommerce' ),
'href' => admin_url( 'post-new.php?post_type=shop_order' ),
),
'customers' => array(
'title' => __( 'Customers', 'woocommerce' ),
'href' => admin_url( 'users.php?role=customer' ),
),
),
),
So the admin urls edit.php?post_type=shop_order
needs to be wp-admin/admin.php?page=wc-orders
when HPOS is enabled.
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس