Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: customize_update_{$this->type}

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
157      protected function update( $value ) {
158           switch( $this->type ) {
159                case 'theme_mod' :
160                     return $this->_update_theme_mod( $value );
161                     break;
162                case 'option' :
163                     return $this->_update_option( $value );
164                     break;
165                default :
166                     return do_action( 'customize_update_' . $this->type, $value );
167           }
168      }
169
170      /**
171       * Update the theme mod from the value of the parameter.
172       *
173       * @since 3.4.0
174       *
175       * @param $value mixed The value to update.