WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
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 |