Provides an opportunity to modify the list of order IDs obtained during an order search. This hook is used for Custom Order Table queries. For Custom Post Type order searches, the corresponding hook is `woocommerce_shop_order_search_results`.
$order_ids, $term
Sortie :
@param int[] $order_ids Search results as an array of order IDs. @param string $term The search term.
// Modifier la valeur avec le filtre 'woocommerce_cot_shop_order_search_results'
add_filter('woocommerce_cot_shop_order_search_results', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($order_ids) {
// Modifier la valeur
return $order_ids;
}
Chargement des actualités...