Remove a dropdown select field filter in Woocommerce admin orders list

woocommerce sorting dropdown shortcode
woocommerce filters
woocommerce remove product sorting plugin
woocommerce ajax product filter by category
woocommerce default sorting
woocommerce orderby
woocommerce attributes in ascending order
woocommerce sort by custom field

In WooCommerce version 3.0+, I would like to remove All shipping Countries filter on Woocommerce order panel.

How to do that? any ideas ?

Thanks

This selectors you want to remove are custom and certainly added by a third party plugin.

You can try this to hide the drop-down selector field with a custom function hooked in admin_head action hook. You will need to replace the CSS ID #my_selector_id by the ID or the class of the selector you want to hide (using your browser code inspector to find the right selector)

add_action( 'admin_head', 'adding_custom_css_in_admin_head', 999 );
function adding_custom_css_in_admin_head() {
    ?>
        <style type="text/css">
            body.post-type-shop_order select#my_selector_id {
                display: none !important;
            }
        </style>
    <?php
}

Code goes in function.php file of your active child theme (or theme) or also in any plugin file.

This code is tested, and it should work with your drop-down selector field.

How to remove categories filter from wordpress admin?, order by. active, oldest, votes. up vote 4 down vote accepted. I tested this and it works for removing the categories dropdown on the All Posts page: add_action( This will also impact other post types that have a 'categories' column. I think the select elements are passed through the wp_dropdown_cats filter. So you  If the WooCommerce product sorting functionality (“Default Sorting” dropdown) is a waste of space or you don’t need that select box at all, you may want to remove it. This PHP solution is simply cleaner than CSS – and no matter if you code or not, you just need to copy/paste my snippet in your theme’s functions.php.

I removed by using css i added this function in function.php

add_action('admin_head', 'hidey_admin_head');
function hidey_admin_head() {
    echo '<style type="text/css">';
    echo 'select[name=_customer_shipping_country] {display: none;}';
    echo '</style>';
}

WooCommerce: How to Remove the "Default Sorting" Dropdown, If the WooCommerce product sorting functionality (“Default Sorting” dropdown) is a waste of space or you don't need that select box at all, you may want to  Addition of WooCommerce Custom Checkout Field. The following code will add a field to the checkout page, saves the data to the order meta and displays the order meta in the orders admin.

The selected answer is not the best solution as the filters are still created, they are just hidden. Instead, you should hook the correct filter and prevent WooCommerce plugin to create the select boxes:

add_filter( 'woocommerce_products_admin_list_table_filters', 'my_woocommerce_products_admin_list_table_filters' );

function my_woocommerce_products_admin_list_table_filters( $filters ) {
    // to remove the category filter
    if( isset( $filters['product_category'] ) ) {
        unset( $filters['product_category'] );
    }

    // to remove the product type filter
    if( isset( $filters['product_type'] ) ) {
        unset( $filters['product_type'] );
    }

    // to remove the stock filter
    if( isset( $filters['stock_status'] ) ) {
        unset( $filters['stock_status'] );
    }

    return $filters;
}

Product Filters, Managing Orders · 7. The first list is “Field” – here are elements responsible for filtering products. After selecting an element, this element appears on left side panel and, Field “Title” – name of project that is only visible in the Admin Panel. When editing a element, 'types' drop down is first dropdown in location rule  In the example below, both action hooks and filter hooks are used. This tutorial teaches you how to change and add fields to the checkout. Actions are used to: Add a new field to the checkout; Add that new field to the order; Filters are used to: Override the labels and placeholders of existing fields

You can try this to hide the drop-down selector field with a custom function hooked in admin_head action hook. You will need to replace the CSS ID #my_selector_id by the ID or the class of the selector you want to hide (using your browser code inspector to find the right selector), You can view if the property is working as expected by going to developer's tool of the browser and selecting each elements.

Checkout Field Editor, The Checkout Field Editor provides an interface to add, edit and remove fields make the first option in the list the default choice whether the field is required or not. Select – A dropdown/select box. After placing an order, the field will be visible in the Admin section 'Custom Fields' panel: filter add for above function. */. Type: checkbox list/drop-down, multiple drop-down or icons. Drop-down label. Set a drop-down first option text. Show search and more. How to add product filter to the store? After creating the filter you can add a filer it in 2 ways: with shortcode and PHP code ( you can find them under the settings tab) or add Woo Product Filter widget. Input

Managing Orders, Canceled — Canceled by an admin or the customer – stock is increased, no further action Filter orders by Date (month/year) or by registered customer. Select Filter. Note that the “Total” column does not take the refunded amount into consideration. To change the status, choose the right status in the dropdown. Arrange orders in ascending or descending order by Order number, Date or Total by select the heading. Note that the “Total” column does not take the refunded amount into consideration. Click the order number and customer name to see the Single Order page , where you can also Edit order details, Update Status , and Add Notes .

Remove, Rename, Reorder or Add Sorting Options in WooCommerce, Remove default options; Rename options; Change order; Add a can also check my another tutorial if you want to remove the sorting dropdown completely. Here we are going to use just one filter hook woocommerce_catalog_orderby add or remove items from the my account menu, admin columns etc. This is simply a list of action and filter hooks found within WooCommerce files. View the source to see supported params and usage. Template Files, Template Functions, Shortcodes, Widgets, Data Stores, Core Classes

WooCommerce Checkout Fields, How to remove the default fields, disable validation or create your own checkout field When working with filters you can change the only file – functions.php and it two fields to the WooCommerce checkout form — a dropdown select into: View Order page, Thank you page, Edit Order Page (wp-admin),  Filters the html price string suffix of products listed in component drop-down menus when the Dropdown style is active. woocommerce_component_options_per_page Modifies the number of Component Options loaded per page when the Thumbnails style is active.