WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
2403 | * Enables developers to determine whether a section of CSS should be allowed or discarded. |
2404 | * By default, the value will be false if the part contains \ ( & } = or comments. |
2405 | * Return true to allow the CSS part to be included in the output. |
2406 | * |
2407 | * @since 5.5.0 |
2408 | * |
2409 | * @param bool $allow_css Whether the CSS in the test string is considered safe. |
2410 | * @param string $css_test_string The CSS string to test. |
2411 | */ |
2412 | $allow_css = apply_filters( 'safecss_filter_attr_allow_css', $allow_css, $css_test_string ); |
2413 |
|
2414 | // Only add the CSS part if it passes the regex check. |
2415 | if ( $allow_css ) { |
2416 | if ( '' !== $css ) { |
2417 | $css .= ';'; |
2418 | } |
2419 |
|
2420 | $css .= $css_item; |
2421 | } |