WordPress at Your Fingertips
function is not described

WC_Product_CSV_Importer::parse_description_field() public WC 1.0

Parse a description value field

{} It's a method of the class: WC_Product_CSV_Importer{}

No Hooks.

Return

String.

Usage

$WC_Product_CSV_Importer = new WC_Product_CSV_Importer();
$WC_Product_CSV_Importer->parse_description_field( $description );
$description(string) (required)
field value.

Code of WC_Product_CSV_Importer::parse_description_field() WC 5.8.0

public function parse_description_field( $description ) {
	$parts = explode( "\\\\n", $description );
	foreach ( $parts as $key => $part ) {
		$parts[ $key ] = str_replace( '\n', "\n", $part );
	}

	return implode( '\\\n', $parts );
}