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
334           add_action( 'wp_head', array( $this, 'customize_preview_html5' ) );
335           add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 );
336           add_action( 'shutdown', array( $this, 'customize_preview_signature' ), 1000 );
337           add_filter( 'wp_die_handler', array( $this, 'remove_preview_signature' ) );
338
339           foreach ( $this->settings as $setting ) {
340                $setting->preview();
341           }
342
343           do_action( 'customize_preview_init', $this );
344      }
345
346      /**
347       * Print base element for preview frame.
348       *
349       * @since 3.4.0
350       */
351      public function customize_preview_base() {
352           ?><base href="<?php echo home_url( '/' ); ?>" /><?php