GC_Customize_Nav_Menus::customize_preview_init()
最后更新于:2021-11-27 03:54:33
GC_Customize_Nav_Menus::customize_preview_init()Add hooks for the Customizer preview.
源文件
文件: gc-includes/class-gc-customize-nav-menus.php
public function customize_preview_init() {
add_action( 'gc_enqueue_scripts', array( $this, 'customize_preview_enqueue_deps' ) );
add_filter( 'gc_nav_menu_args', array( $this, 'filter_gc_nav_menu_args' ), 1000 );
add_filter( 'gc_nav_menu', array( $this, 'filter_gc_nav_menu' ), 10, 2 );
add_filter( 'gc_footer', array( $this, 'export_preview_data' ), 1 );
add_filter( 'customize_render_partials_response', array( $this, 'export_partial_rendered_nav_menu_instances' ) );
}