Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: customize_value_{$id_base}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
139           $post = wp_get_custom_css_post( $this->stylesheet );
140           if ( $post ) {
141                $value = $post->post_content;
142           }
143           if ( empty( $value ) ) {
144                $value = $this->default;
145           }
146
147           /** This filter is documented in wp-includes/class-wp-customize-setting.php */
148           $value = apply_filters( "customize_value_{$id_base}", $value, $this );
149
150           return $value;
151      }
152
153      /**
154       * Validate CSS.
155       *
156       * Checks for imbalanced braces, brackets, and comments.
157       * Notifications are rendered when the customizer state is saved.