Parsed: 116162
<?php /** * WordPress Customize Widgets classes * * @package WordPress * @subpackage Customize * @since 3.9.0 */ #[AllowDynamicProperties] /* class WP_Customize_Widgets */ /* function WP_Customize_Widgets::__construct() – Initial loader. */ /* function WP_Customize_Widgets::get_selective_refreshable_widgets() – List whether each registered widget can be use selective refresh. */ /* function WP_Customize_Widgets::is_widget_selective_refreshable() – Determines if a widget supports selective refresh. */ /* function WP_Customize_Widgets::get_setting_type() – Retrieves the widget setting type given a setting ID. */ /* function WP_Customize_Widgets::register_settings() – Inspects the incoming customized data for any widget settings, and dynamically adds them up-front so widgets will be initialized properly. */ /* function WP_Customize_Widgets::filter_customize_dynamic_setting_args() – Determines the arguments for a dynamically-created setting. */ /* function WP_Customize_Widgets::get_post_value() – Retrieves an unslashed post value or return a default. */ /* function WP_Customize_Widgets::override_sidebars_widgets_for_theme_switch() – Override sidebars_widgets for theme switch. */ /* function WP_Customize_Widgets::filter_customize_value_old_sidebars_widgets_data() – Filters old_sidebars_widgets_data Customizer setting. */ /* function WP_Customize_Widgets::filter_option_sidebars_widgets_for_theme_switch() – Filters sidebars_widgets option for theme switch. */ /* function WP_Customize_Widgets::customize_controls_init() – Ensures all widgets get loaded into the Customizer. */ /* function WP_Customize_Widgets::schedule_customize_register() – Ensures widgets are available for all types of previews. */ /* function WP_Customize_Widgets::customize_register() – Registers Customizer settings and controls for all sidebars and widgets. */ /* function WP_Customize_Widgets::is_panel_active() – Determines whether the widgets panel is active, based on whether there are sidebars registered. */ /* function WP_Customize_Widgets::get_setting_id() – Converts a widget_id into its corresponding Customizer setting ID (option name). */ /* function WP_Customize_Widgets::is_wide_widget() – Determines whether the widget is considered "wide". */ /* function WP_Customize_Widgets::parse_widget_id() – Converts a widget ID into its id_base and number components. */ /* function WP_Customize_Widgets::parse_widget_setting_id() – Converts a widget setting ID (option path) to its id_base and number components. */ /* function WP_Customize_Widgets::print_styles() – Calls admin_print_styles-widgets.php and admin_print_styles hooks to allow custom styles from plugins. */ /* function WP_Customize_Widgets::print_scripts() – Calls admin_print_scripts-widgets.php and admin_print_scripts hooks to allow custom scripts from plugins. */ /* function WP_Customize_Widgets::enqueue_scripts() – Enqueues scripts and styles for Customizer panel and export data to JavaScript. */ /* function WP_Customize_Widgets::output_widget_control_templates() – Renders the widget form control templates into the DOM. */ /* function WP_Customize_Widgets::print_footer_scripts() – Calls admin_print_footer_scripts and admin_print_scripts hooks to allow custom scripts from plugins. */ /* function WP_Customize_Widgets::get_setting_args() – Retrieves common arguments to supply when constructing a Customizer setting. */ /* function WP_Customize_Widgets::sanitize_sidebar_widgets() – Ensures sidebar widget arrays only ever contain widget IDS. */ /* function WP_Customize_Widgets::get_available_widgets() – Builds up an index of all available widgets for use in Backbone models. */ /* function WP_Customize_Widgets::_sort_name_callback() – Naturally orders available widgets by name. */ /* function WP_Customize_Widgets::get_widget_control() – Retrieves the widget control markup. */ /* function WP_Customize_Widgets::get_widget_control_parts() – Retrieves the widget control markup parts. */ /* function WP_Customize_Widgets::customize_preview_init() – Adds hooks for the Customizer preview. */ /* function WP_Customize_Widgets::refresh_nonces() – Refreshes the nonce for widget updates. */ /* function WP_Customize_Widgets::should_load_block_editor_scripts_and_styles() – Tells the script loader to load the scripts and styles of custom blocks if the widgets block editor is enabled. */ /* function WP_Customize_Widgets::preview_sidebars_widgets() – When previewing, ensures the proper previewing widgets are used. */ /* function WP_Customize_Widgets::customize_preview_enqueue() – Enqueues scripts for the Customizer preview. */ /* function WP_Customize_Widgets::print_preview_css() – Inserts default style for highlighted widget at early point so theme stylesheet can override. */ /* function 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, */ /* function WP_Customize_Widgets::tally_rendered_widgets() – Tracks the widgets that were rendered. */ /* function WP_Customize_Widgets::is_widget_rendered() – Determine if a widget is rendered on the page. */ /* function WP_Customize_Widgets::is_sidebar_rendered() – Determines if a sidebar is rendered on the page. */ /* function WP_Customize_Widgets::tally_sidebars_via_is_active_sidebar_calls() – Tallies the sidebars rendered via is_active_sidebar(). */ /* function WP_Customize_Widgets::tally_sidebars_via_dynamic_sidebar_calls() – Tallies the sidebars rendered via dynamic_sidebar(). */ /* function WP_Customize_Widgets::get_instance_hash_key() – Retrieves MAC for a serialized widget instance string. */ /* function WP_Customize_Widgets::sanitize_widget_instance() – Sanitizes a widget instance. */ /* function WP_Customize_Widgets::sanitize_widget_js_instance() – Converts a widget instance into JSON-representable format. */ /* function WP_Customize_Widgets::sanitize_sidebar_widgets_js_instance() – Strips out widget IDs for widgets which are no longer registered. */ /* function WP_Customize_Widgets::call_widget_update() – Finds and invokes the widget update and control callbacks. */ /* function WP_Customize_Widgets::wp_ajax_update_widget() – Updates widget settings asynchronously. */ /* function WP_Customize_Widgets::customize_dynamic_partial_args() – Filters arguments for dynamic widget partials. */ /* function WP_Customize_Widgets::selective_refresh_init() – Adds hooks for selective refresh. */ /* function WP_Customize_Widgets::filter_dynamic_sidebar_params() – Inject selective refresh data attributes into widget container elements. */ /* function WP_Customize_Widgets::filter_wp_kses_allowed_data_attributes() – Ensures the HTML data-* attributes for selective refresh are allowed by kses. */ /* function WP_Customize_Widgets::start_dynamic_sidebar() – Begins keeping track of the current sidebar being rendered. */ /* function WP_Customize_Widgets::end_dynamic_sidebar() – Finishes keeping track of the current sidebar being rendered. */ /* function 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. */ /* function WP_Customize_Widgets::render_widget_partial() – Renders a specific widget using the supplied sidebar arguments. */ /* function WP_Customize_Widgets::is_option_capture_ignored() – Determines whether the captured option update should be ignored. */ /* function WP_Customize_Widgets::get_captured_options() – Retrieves captured widget option updates. */ /* function WP_Customize_Widgets::get_captured_option() – Retrieves the option that was captured from being saved. */ /* function WP_Customize_Widgets::count_captured_options() – Retrieves the number of captured widget option updates. */ /* function WP_Customize_Widgets::start_capturing_option_updates() – Begins keeping track of changes to widget options, caching new values. */ /* function WP_Customize_Widgets::capture_filter_pre_update_option() – Pre-filters captured option values before updating. */ /* function WP_Customize_Widgets::capture_filter_pre_get_option() – Pre-filters captured option values before retrieving. */ /* function WP_Customize_Widgets::stop_capturing_option_updates() – Undoes any changes to the options since options capture began. */ /* function WP_Customize_Widgets::setup_widget_addition_previews() – {@internal Missing Summary} */ /* function WP_Customize_Widgets::prepreview_added_sidebars_widgets() – {@internal Missing Summary} */ /* function WP_Customize_Widgets::prepreview_added_widget_instance() – {@internal Missing Summary} */ /* function WP_Customize_Widgets::remove_prepreview_filters() – {@internal Missing Summary} */