WP_Customize_Manager::wp_loaded() – Register styles/scripts and initialize the preview of each setting
You appear to be a bot. Output may be restricted
Description
Registers styles/scripts and initialize the preview of each setting
Usage
WP_Customize_Manager::wp_loaded();
Parameters
Returns
void
Source
File name: wordpress/wp-includes/class-wp-customize-manager.php
Lines:
1 to 40 of 40
public function wp_loaded() { // Unconditionally register core types for panels, sections, and controls // in case plugin unhooks all customize_register actions. $this->WP_Customize_Manager::register_panel_type( 'WP_Customize_Panel' ); $this->WP_Customize_Manager::register_panel_type( 'WP_Customize_Themes_Panel' ); $this->WP_Customize_Manager::register_section_type( 'WP_Customize_Section' ); $this->WP_Customize_Manager::register_section_type( 'WP_Customize_Sidebar_Section' ); $this->WP_Customize_Manager::register_section_type( 'WP_Customize_Themes_Section' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Color_Control' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Media_Control' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Upload_Control' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Image_Control' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Background_Image_Control' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Background_Position_Control' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Cropped_Image_Control' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Site_Icon_Control' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Theme_Control' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Code_Editor_Control' ); $this->WP_Customize_Manager::register_control_type( 'WP_Customize_Date_Time_Control' ); /** * Fires once WordPress has loaded, allowing scripts and styles to be initialized. * * @since 3.4.0 * * @param WP_Customize_Manager $manager WP_Customize_Manager instance. */ do_action( 'customize_register', $this ); if ( $this->WP_Customize_Manager::settings_previewed() ) { foreach ( $this->WP_Customize_Manager::settings as $setting ) { $setting->preview(); } } if ( $this->WP_Customize_Manager::is_preview() && ! is_admin() ) { $this->WP_Customize_Manager::customize_preview_init(); } }