wppaste
WordPress

WP_Customize_Manager

Since
3.4.0
Source
wp-includes/class-wp-customize-manager.php:23
Customize Manager class.

Description

Bootstraps the Customize experience on the server-side.

Sets up the theme-switching process if a theme other than the active one is being previewed and customized.

Serves as a factory for Customize Controls and Settings, and instantiates default Customize Controls and Settings.

Compatibility

WordPress
since 3.4.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Hooks and filters fired · 30

Every hook that fires from inside WP_Customize_Manager, in the order it appears in the class, grouped by the method that fires it.

Properties · 29

$themeWP_Themeprotected
An instance of the theme being previewed.
$original_stylesheetstringprotected
The directory name of the previously active theme (within the theme_root).
$previewingboolprotected
Whether this is a Customizer pageload.
$widgetsWP_Customize_Widgetspublic
Methods and properties dealing with managing widgets in the Customizer.
$nav_menusWP_Customize_Nav_Menuspublic
Methods and properties dealing with managing nav menus in the Customizer.
$selective_refreshWP_Customize_Selective_Refreshpublic
Methods and properties dealing with selective refresh in the Customizer preview.
$settingsarrayprotected
Registered instances of WP_Customize_Setting.
$containersarrayprotected
Sorted top-level instances of WP_Customize_Panel and WP_Customize_Section.
$panelsarrayprotected
Registered instances of WP_Customize_Panel.
$componentsarrayprotected
List of core components.
$sectionsarrayprotected
Registered instances of WP_Customize_Section.
$controlsarrayprotected
Registered instances of WP_Customize_Control.
$registered_panel_typesarrayprotected
Panel types that may be rendered from JS templates.
$registered_section_typesarrayprotected
Section types that may be rendered from JS templates.
$registered_control_typesarrayprotected
Control types that may be rendered from JS templates.
$preview_urlstringprotected
Initial URL being previewed.
$return_urlstringprotected
URL to link the user to when closing the Customizer.
$autofocusstring[]protected
Mapping of 'panel', 'section', 'control' to the ID which should be autofocused.
$messenger_channelstringprotected
Messenger channel.
$autosavedboolprotected
Whether the autosave revision of the changeset should be loaded.
$branchingboolprotected
Whether the changeset branching is allowed.
$settings_previewedboolprotected
Whether settings should be previewed.
$saved_starter_content_changesetboolprotected
Whether a starter content changeset was saved.
$_post_valuesarrayprivate
Unsanitized values for Customize Settings parsed from $_POST['customized'].
$_changeset_uuidstringprivate
Changeset UUID.
$_changeset_post_idint|falseprivate
Changeset post ID.
$_changeset_dataarray|nullprivate
Changeset data loaded from a customize_changeset post.
$pending_starter_content_settings_idsarrayprotected
Starter content setting IDs.
$store_changeset_revisionboolprotected
Determines whether a changeset revision should be made.

Methods · 117

Source code

#[AllowDynamicProperties]final class WP_Customize_Manager {	/**	 * An instance of the theme being previewed.	 *	 * @since 3.4.0	 * @var WP_Theme	 */	protected $theme; 	/**	 * The directory name of the previously active theme (within the theme_root).	 *	 * @since 3.4.0	 * @var string	 */	protected $original_stylesheet; 	/**	 * Whether this is a Customizer pageload.	 *	 * @since 3.4.0	 * @var bool	 */	protected $previewing = false; 	/**	 * Methods and properties dealing with managing widgets in the Customizer.	 *	 * @since 3.9.0	 * @var WP_Customize_Widgets	 */	public $widgets; 	/**	 * Methods and properties dealing with managing nav menus in the Customizer.	 *	 * @since 4.3.0	 * @var WP_Customize_Nav_Menus	 */	public $nav_menus; 	/**	 * Methods and properties dealing with selective refresh in the Customizer preview.	 *	 * @since 4.5.0	 * @var WP_Customize_Selective_Refresh	 */	public $selective_refresh; 	/**	 * Registered instances of WP_Customize_Setting.	 *	 * @since 3.4.0	 * @var array	 */	protected $settings = array(); 	/**	 * Sorted top-level instances of WP_Customize_Panel and WP_Customize_Section.	 *	 * @since 4.0.0	 * @var array	 */	protected $containers = array(); 	/**	 * Registered instances of WP_Customize_Panel.	 *	 * @since 4.0.0	 * @var array	 */	protected $panels = array(); 	/**	 * List of core components.	 *	 * @since 4.5.0	 * @var array	 */

Changelog

Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/class-wp-customize-manager.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.