Created
September 21, 2017 13:31
-
-
Save tankbar/ec4fd4d347eecafaa0dcc40ec474cb45 to your computer and use it in GitHub Desktop.
Search custom fields on WooCommerce Orders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_shop_order_search_fields', 'woocommerce_shop_order_search_order_total' ); | |
function woocommerce_shop_order_search_order_total( $search_fields ) { | |
$search_fields[] = '_order_total'; | |
return $search_fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment