safecss_filter_attr
Inline CSS filter.
Description
Parameters (2)
- 0. $css
- The css.
- 1. $element — Optional. (string) =>
'div'
- The element.
Usage
if ( !function_exists( 'safecss_filter_attr' ) ) { require_once '/modules/custom-css/custom-css.php'; } // The css. $css = null; // The element. $element = 'div'; // NOTICE! Understand what this does before running. $result = safecss_filter_attr($css, $element);
Defined (1)
The function is defined in the following location(s).
- /modules/custom-css/custom-css.php
- function safecss_filter_attr( $css, $element = 'div' ) {
- return Jetpack_Safe_CSS::filter_attr( $css, $element );
- }