woocommerce_product_export_row_data

FILTER woocommerce\includes\export\class-wc-product-csv-exporter.php (ligne 319) github
Allow third-party plugins to filter the data in a single row of the exported CSV file.

Paramètres

Entrée :
$row, $product, $this
Sortie :
@param array                   $row         An associative array with the data of a single row in the CSV file.
@param WC_Product              $product     The product object corresponding to the current row.
@param WC_Product_CSV_Exporter $exporter    The instance of the CSV exporter.

Utilisation

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

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

Actualités

Chargement des actualités...