wc_format_content

Format content to display shortcodes.

Description

(string) wc_format_content( (string) $raw_string ); 

Returns (string)

Parameters (1)

0. $raw_string (string)
The raw string.

Usage

  1. if ( !function_exists( 'wc_format_content' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-formatting-functions.php'; 
  3.  
  4. // The raw string. 
  5. $raw_string = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wc_format_content($raw_string); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-formatting-functions.php  
  1. function wc_format_content( $raw_string ) { 
  2. return apply_filters( 'woocommerce_format_content', apply_filters( 'woocommerce_short_description', $raw_string ), $raw_string );