Filter: ep_woocommerce_admin_products_list_search_fields

apply_filters( 'ep_woocommerce_admin_products_list_search_fields', $wc_admin_search_fields ) → {array}

Filter the fields used in WooCommerce Admin Product Search.

add_filter(
    'ep_woocommerce_admin_products_list_search_fields',
    function ( $wc_admin_search_fields ) {
        $wc_admin_search_fields['meta'][] = 'custom_field';
        return $wc_admin_search_fields;
    }
);
Parameters:
Name Type Description
$wc_admin_search_fields array

Fields to be used in the WooCommerce Admin Product Search

Since:
  • 4.2.0
Source:
Returns:

New fields

Type
array