Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: customize_preview_init

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
315           add_action( 'wp_head', array( $this, 'customize_preview_html5' ) );
316           add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 );
317           add_action( 'shutdown', array( $this, 'customize_preview_signature' ), 1000 );
318           add_filter( 'wp_die_handler', array( $this, 'remove_preview_signature' ) );
319
320           foreach ( $this->settings as $setting ) {
321                $setting->preview();
322           }
323
324           do_action( 'customize_preview_init', $this );
325      }
326
327      /**
328       * Print base element for preview frame.
329       *
330       * @since 3.4.0
331       */
332      public function customize_preview_base() {
333           ?><base href="<?php echo home_url( '/' ); ?>" /><?php