woocommerce_orders_table_datastore_db_rows_for_order

FILTER woocommerce\src\Internal\DataStores\Orders\OrdersTableDataStore.php (ligne 2340) github
Filters the rows that are going to be inserted or updated during an order save.

Paramètres

Entrée :
array_merge( $result, $ext_rows
Sortie :
@param array     $rows    Array of rows to be inserted/updated. See 'woocommerce_orders_table_datastore_extra_db_rows_for_order' for exact format.
@param \WC_Order $order   The order object.
@param string    $context The context of the operation: 'create' or 'update'.

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_orders_table_datastore_db_rows_for_order'
add_filter('woocommerce_orders_table_datastore_db_rows_for_order', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(array_merge( $result) {
    // Modifier la valeur
    return array_merge( $result;
}

Actualités

Chargement des actualités...