WC_Product_CSV_Exporter::get_column_value_sale_price()protectedWC 1.0

Get formatted sale price.

Method of the class: WC_Product_CSV_Exporter{}

No Hooks.

Return

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() code WC 8.6.1

protected function get_column_value_sale_price( $product ) {
	return wc_format_localized_price( $product->get_sale_price( 'view' ) );
}