WordPress at a glance
function is not described

wc_format_product_short_description() WC 2.4.0

Format product short description. Adds support for Jetpack Markdown.

No Hooks.

Return

String. Nothing.

Usage

wc_format_product_short_description( $content );
$content(string) (required)
Product short description.

Changelog

Since 2.4.0 Introduced.

Code of wc_format_product_short_description() WC 5.3.0

<?php
function wc_format_product_short_description( $content ) {
	// Add support for Jetpack Markdown.
	if ( class_exists( 'WPCom_Markdown' ) ) {
		$markdown = WPCom_Markdown::get_instance();

		return wpautop(
			$markdown->transform(
				$content,
				array(
					'unslash' => false,
				)
			)
		);
	}

	return $content;
}