WC_Product_CSV_Exporter::get_column_value_sale_price
Get formatted sale price.
Method of the class: WC_Product_CSV_Exporter{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_column_value_sale_price( $product );
- $product(WC_Product) (required)
- Product being exported.
WC_Product_CSV_Exporter::get_column_value_sale_price() WC Product CSV Exporter::get column value sale price code WC 10.4.3
protected function get_column_value_sale_price( $product ) {
return wc_format_localized_price( $product->get_sale_price( 'view' ) );
}