WP_Customize_Site_Icon_Control::__construct() WordPress Method
The WP_Customize_Site_Icon_Control::__construct() method is used to construct a new customizer control for managing a site icon. This control allows a user to upload a new site icon, or select an existing icon from their media library. Once an icon is selected, the control will display a preview of the icon.
WP_Customize_Site_Icon_Control::__construct( WP_Customize_Manager $manager, string $id, array $args = array() ) #
Constructor.
Description
See also
Parameters
- $manager
(WP_Customize_Manager)(Required)Customizer bootstrap instance.
- $id
(string)(Required)Control ID.
- $args
(array)(Optional) Arguments to override class property defaults. See WP_Customize_Control::__construct() for information on accepted arguments.
Default value: array()
Source
File: wp-includes/customize/class-wp-customize-site-icon-control.php
public function __construct( $manager, $id, $args = array() ) { parent::__construct( $manager, $id, $args ); add_action( 'customize_controls_print_styles', 'wp_site_icon', 99 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |