layers_execute_inline_style_block

The Layers layers execute inline style block function.

Description

layers_execute_inline_style_block( $filter_arg ); 

Parameters (1)

0. $filter_arg
The filter arg.

Usage

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

Defined (1)

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

/core/helpers/template.php  
  1. function layers_execute_inline_style_block( $filter_arg ) { 
  2. global $layers_inline_css; 
  3.  
  4. if ( isset( $layers_inline_css ) && '' !== $layers_inline_css ) { 
  5.  
  6. echo '<style type="text/css" id="layers-inline-styles-header">' . $layers_inline_css . '</style>'; 
  7. $layers_inline_css = ''; 
  8.  
  9. // If this is a filter, then return the main arg. 
  10. return $filter_arg;