woocommerce_order_list_table_restrict_manage_orders

ACTION woocommerce\src\Internal\Admin\Orders\ListTable.php (ligne 775) github
Fires before the "Filter" button on the list table for orders and other order types.

Paramètres

Entrée :
$this->order_type, $which
Sortie :
@param string $order_type  The order type.
@param string $which       The location of the extra table nav: 'top' or 'bottom'.

Utilisation

// Ajouter une fonction au hook action 'woocommerce_order_list_table_restrict_manage_orders'
add_action('woocommerce_order_list_table_restrict_manage_orders', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($this->order_type, $which) {
    // Votre code ici
    error_log('Hook woocommerce_order_list_table_restrict_manage_orders déclenché');
}

Actualités

Chargement des actualités...