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
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.