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 |
---|---|
133 | $post = wp_get_custom_css_post( $this->stylesheet ); |
134 | if ( $post ) { |
135 | $value = $post->post_content; |
136 | } |
137 | if ( empty( $value ) ) { |
138 | $value = $this->default; |
139 | } |
140 |
|
141 | /** This filter is documented in wp-includes/class-wp-customize-setting.php */ |
142 | $value = apply_filters( "customize_value_{$id_base}", $value, $this ); |
143 |
|
144 | return $value; |
145 | } |
146 |
|
147 | /** |
148 | * Validate CSS. |
149 | * |
150 | * Checks for imbalanced braces, brackets, and comments. |
151 | * Notifications are rendered when the customizer state is saved. |