layers_get_content

The Layers layers get content function.

Description

layers_get_content( (string) $content = '' ); 

Parameters (1)

0. $content — Optional. (string) => ''
The content.

Usage

  1. if ( !function_exists( 'layers_get_content' ) ) { 
  2. require_once '/core/helpers/template.php'; 
  3.  
  4. // The content. 
  5. $content = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = layers_get_content($content); 
  9.  

Defined (1)

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

/core/helpers/template.php  
  1. function layers_get_content( $content = '' ) { 
  2.  
  3. // Remove 'wpautop' so RTE can be output cleanly. This assumes every content is an RTE (Rich Text Editor) 
  4. remove_filter( 'the_content', 'wpautop' ); 
  5. $content = apply_filters( 'the_content', $content ); 
  6. add_filter( 'the_content', 'wpautop' ); 
  7. return $content;