wc_format_content()
Format content to display shortcodes.
Hooks from the function
Returns
String.
Usage
wc_format_content( $raw_string );
- $raw_string(string) (required)
- Raw string.
Changelog
| Since 2.3.0 | Introduced. |
wc_format_content() wc format content code WC 10.4.3
function wc_format_content( $raw_string ) {
$raw_string = $raw_string ?? '';
return apply_filters( 'woocommerce_format_content', apply_filters( 'woocommerce_short_description', $raw_string ), $raw_string );
}