Customize Widgets class.
Description
Implements widget management in the Customizer.
See also
Methods
Name | Description |
---|---|
WP_Customize_Widgets::__construct | Initial loader. |
WP_Customize_Widgets::_sort_name_callback | Naturally orders available widgets by name. |
WP_Customize_Widgets::call_widget_update | Finds and invokes the widget update and control callbacks. |
WP_Customize_Widgets::capture_filter_pre_get_option | Pre-filters captured option values before retrieving. |
WP_Customize_Widgets::capture_filter_pre_update_option | Pre-filters captured option values before updating. |
WP_Customize_Widgets::count_captured_options | Retrieves the number of captured widget option updates. |
WP_Customize_Widgets::customize_controls_init | Ensures all widgets get loaded into the Customizer. |
WP_Customize_Widgets::customize_dynamic_partial_args | Filters arguments for dynamic widget partials. |
WP_Customize_Widgets::customize_preview_enqueue | Enqueues scripts for the Customizer preview. |
WP_Customize_Widgets::customize_preview_init | Adds hooks for the Customizer preview. |
WP_Customize_Widgets::customize_register | Registers Customizer settings and controls for all sidebars and widgets. |
WP_Customize_Widgets::end_dynamic_sidebar | Finishes keeping track of the current sidebar being rendered. |
WP_Customize_Widgets::enqueue_scripts | Enqueues scripts and styles for Customizer panel and export data to JavaScript. |
WP_Customize_Widgets::export_preview_data | Communicates the sidebars that appeared on the page at the very end of the page, and at the very end of the wp_footer, |
WP_Customize_Widgets::filter_customize_dynamic_setting_args | Determines the arguments for a dynamically-created setting. |
WP_Customize_Widgets::filter_customize_value_old_sidebars_widgets_data | Filters old_sidebars_widgets_data Customizer setting. |
WP_Customize_Widgets::filter_dynamic_sidebar_params | Inject selective refresh data attributes into widget container elements. |
WP_Customize_Widgets::filter_option_sidebars_widgets_for_theme_switch | Filters sidebars_widgets option for theme switch. |
WP_Customize_Widgets::filter_sidebars_widgets_for_rendering_widget | Filters sidebars_widgets to ensure the currently-rendered widget is the only widget in the current sidebar. |
WP_Customize_Widgets::filter_wp_kses_allowed_data_attributes | Ensures the HTML data-* attributes for selective refresh are allowed by kses. |
WP_Customize_Widgets::get_available_widgets | Builds up an index of all available widgets for use in Backbone models. |
WP_Customize_Widgets::get_captured_option | Retrieves the option that was captured from being saved. |
WP_Customize_Widgets::get_captured_options | Retrieves captured widget option updates. |
WP_Customize_Widgets::get_instance_hash_key | Retrieves MAC for a serialized widget instance string. |
WP_Customize_Widgets::get_post_value | Retrieves an unslashed post value or return a default. |
WP_Customize_Widgets::get_selective_refreshable_widgets | List whether each registered widget can be use selective refresh. |
WP_Customize_Widgets::get_setting_args | Retrieves common arguments to supply when constructing a Customizer setting. |
WP_Customize_Widgets::get_setting_id | Converts a widget_id into its corresponding Customizer setting ID (option name). |
WP_Customize_Widgets::get_setting_type | Retrieves the widget setting type given a setting ID. |
WP_Customize_Widgets::get_widget_control | Retrieves the widget control markup. |
WP_Customize_Widgets::get_widget_control_parts | Retrieves the widget control markup parts. |
WP_Customize_Widgets::is_option_capture_ignored | Determines whether the captured option update should be ignored. |
WP_Customize_Widgets::is_panel_active | Determines whether the widgets panel is active, based on whether there are sidebars registered. |
WP_Customize_Widgets::is_sidebar_rendered | Determines if a sidebar is rendered on the page. |
WP_Customize_Widgets::is_wide_widget | Determines whether the widget is considered “wide”. |
WP_Customize_Widgets::is_widget_rendered | Determine if a widget is rendered on the page. |
WP_Customize_Widgets::is_widget_selective_refreshable | Determines if a widget supports selective refresh. |
WP_Customize_Widgets::output_widget_control_templates | Renders the widget form control templates into the DOM. |
WP_Customize_Widgets::override_sidebars_widgets_for_theme_switch | Override sidebars_widgets for theme switch. |
WP_Customize_Widgets::parse_widget_id | Converts a widget ID into its id_base and number components. |
WP_Customize_Widgets::parse_widget_setting_id | Converts a widget setting ID (option path) to its id_base and number components. |
WP_Customize_Widgets::prepreview_added_sidebars_widgets | {@internal Missing Summary} — deprecated |
WP_Customize_Widgets::prepreview_added_widget_instance | {@internal Missing Summary} — deprecated |
WP_Customize_Widgets::preview_sidebars_widgets | When previewing, ensures the proper previewing widgets are used. |