TycheSoftwares / custom-order-statuses-woocommerce

This Repository is for the Custom Order Statuses for WooCommerce - Lite
3 stars 1 forks source link

Queries are getting duplicated. #77

Closed Chetna1510 closed 2 years ago

Chetna1510 commented 2 years ago

Duplicate Queries Potential Troublemakers

Alg_WC_Custom_Order_Statuses_Core->register_custom_post_statuses() 1 call Alg_WC_Custom_Order_Statuses_Core->add_custom_statuses_to_filter() 1,053 calls Alg_WC_Custom_Order_Statuses_Core->hook_statuses_icons_css() 1 call Alg_WC_Custom_Order_Statuses_Core->register_order_custom_status_bulk_actions()

Enable Query Monitor plugin and check it on Custom Order Status page. I'm also able to replicate the issue. Screenshot of it: https://prnt.sc/1wpwjbc

https://tychesoftwares.freshdesk.com/a/tickets/33896