WordPress at Your Fingertips
function is not described

WP_Customize_Nav_Menus::customize_preview_init() public WP 4.3.0

Add hooks for the Customizer preview.

{} It's a method of the class: WP_Customize_Nav_Menus{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Customize_Nav_Menus = new WP_Customize_Nav_Menus();
$WP_Customize_Nav_Menus->customize_preview_init();

Changelog

Since 4.3.0 Introduced.

Code of WP_Customize_Nav_Menus::customize_preview_init() WP 5.8.2

public function customize_preview_init() {
	add_action( 'wp_enqueue_scripts', array( $this, 'customize_preview_enqueue_deps' ) );
	add_filter( 'wp_nav_menu_args', array( $this, 'filter_wp_nav_menu_args' ), 1000 );
	add_filter( 'wp_nav_menu', array( $this, 'filter_wp_nav_menu' ), 10, 2 );
	add_filter( 'wp_footer', array( $this, 'export_preview_data' ), 1 );
	add_filter( 'customize_render_partials_response', array( $this, 'export_partial_rendered_nav_menu_instances' ) );
}