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 |
---|---|
2388 | * Enables developers to determine whether a section of CSS should be allowed or discarded. |
2389 | * By default, the value will be false if the part contains \ ( & } = or comments. |
2390 | * Return true to allow the CSS part to be included in the output. |
2391 | * |
2392 | * @since 5.5.0 |
2393 | * |
2394 | * @param bool $allow_css Whether the CSS in the test string is considered safe. |
2395 | * @param string $css_test_string The CSS string to test. |
2396 | */ |
2397 | $allow_css = apply_filters( 'safecss_filter_attr_allow_css', $allow_css, $css_test_string ); |
2398 |
|
2399 | // Only add the CSS part if it passes the regex check. |
2400 | if ( $allow_css ) { |
2401 | if ( '' !== $css ) { |
2402 | $css .= ';'; |
2403 | } |
2404 |
|
2405 | $css .= $css_item; |
2406 | } |