WP_Customize_Widgets::customize_preview_init()

In this article

Adds hooks for the Customizer preview.

Source

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 );
}

Changelog

VersionDescription
3.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.