• Resolved magsmyk00

    (@magsmyk00)


    How can I disable the order search engine by supplier in the order list?
    Unfortunately, it adds a parameter to WP query, which slows down the search for orders.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gaurav1092

    (@gaurav1092)

    Hi @magsmyk00,

    Please add below code in your theme/child theme functions.php file to remove shipping providers filter from orders list.

    $ast_admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
    remove_action( ‘restrict_manage_posts’, array( $ast_admin, ‘filter_orders_by_shipping_provider’), 20 );
    remove_filter( ‘request’, array( $ast_admin, ‘filter_orders_by_shipping_provider_query’ ) );

    Thanks

    Thread Starter magsmyk00

    (@magsmyk00)

    It works perfectly.
    Many thanks for your help ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I disable filtering by shipping providers in the order list?’ is closed to new replies.