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 |
---|---|
2524 | * Enables developers to determine whether a section of CSS should be allowed or discarded. |
2525 | * By default, the value will be false if the part contains \ ( & } = or comments. |
2526 | * Return true to allow the CSS part to be included in the output. |
2527 | * |
2528 | * @since 5.5.0 |
2529 | * |
2530 | * @param bool $allow_css Whether the CSS in the test string is considered safe. |
2531 | * @param string $css_test_string The CSS string to test. |
2532 | */ |
2533 | $allow_css = apply_filters( 'safecss_filter_attr_allow_css', $allow_css, $css_test_string ); |
2534 |
|
2535 | // Only add the CSS part if it passes the regex check. |
2536 | if ( $allow_css ) { |
2537 | if ( '' !== $css ) { |
2538 | $css .= ';'; |
2539 | } |
2540 |
|
2541 | $css .= $css_item; |
2542 | } |