WP_Customize_Widgets::customize_preview_init() WordPress Method

The WP_Customize_Widgets::customize_preview_init() method is used to initialize the customizer preview for widgets. This method is called on the Customizer preview screen after the theme has been loaded.

WP_Customize_Widgets::customize_preview_init() #

Adds hooks for the Customizer preview.


Source

File: wp-includes/class-wp-customize-widgets.php

	public function customize_preview_init() {
		add_action( 'wp_enqueue_scripts', array( $this, 'customize_preview_enqueue' ) );
		add_action( 'wp_print_styles', array( $this, 'print_preview_css' ), 1 );
		add_action( 'wp_footer', array( $this, 'export_preview_data' ), 20 );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More