-
-
Save renatofrota/c11bdf15f404f41a3345705c70085e46 to your computer and use it in GitHub Desktop.
Adicionar campo personalizado na busca de pedidos WooCommerce
This file contains 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
<?php | |
/** | |
* @woo_custom_search | |
* @param string $search_fields | |
*/ | |
function woo_custom_search( $search_fields ) { | |
$search_fields[] = 'Método de pagamento'; | |
return $search_fields; | |
} | |
add_filter( 'woocommerce_shop_order_search_fields', 'woo_custom_search' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment