woocommerce_cot_shop_order_search_results

FILTER woocommerce\src\Internal\DataStores\Orders\OrdersTableDataStore.php (ligne 1234) github
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`.

Paramètres

Entrée :
$order_ids, $term
Sortie :
@param int[]  $order_ids Search results as an array of order IDs.
@param string $term      The search term.

Utilisation

// 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;
}

Actualités

Chargement des actualités...