safecss_filter_attr_allow_css

safecss_filter_attr_allow_css

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('safecss_filter_attr_allow_css') is found 1 times:

  • /wp-includes/kses.php line 2681
    			 *
    			 * @param bool   $allow_css       Whether the CSS in the test string is considered safe.
    			 * @param string $css_test_string The CSS string to test.
    			 */
    			$allow_css = apply_filters( 'safecss_filter_attr_allow_css', $allow_css, $css_test_string );
    
    			// Only add the CSS part if it passes the regex check.
    			if ( $allow_css ) {
    				if ( '' !== $css ) {
    					$css .= ';';
    				}
    

See this hook used in plugins: