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