safecss_filter_attr

Inline CSS filter.

Description

safecss_filter_attr( $css, (string) $element = 'div' ); 

Parameters (2)

0. $css
The css.
1. $element — Optional. (string) => 'div'
The element.

Usage

  1. if ( !function_exists( 'safecss_filter_attr' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/custom-css/custom-css.php'; 
  3.  
  4. // The css. 
  5. $css = null; 
  6.  
  7. // The element. 
  8. $element = 'div'; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = safecss_filter_attr($css, $element); 
  12.  

Defined (1)

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

/modules/custom-css/custom-css.php  
  1. function safecss_filter_attr( $css, $element = 'div' ) { 
  2. return Jetpack_Safe_CSS::filter_attr( $css, $element );