WP_Site_Icon::__construct() WordPress Method
The WP_Site_Icon::__construct() method allows a user to set a custom site icon for a WordPress site. A user can set a custom site icon by going to the Site Identity section of the Customizer.
WP_Site_Icon::__construct() #
Registers actions and filters.
Source
File: wp-admin/includes/class-wp-site-icon.php
public function __construct() {
add_action( 'delete_attachment', array( $this, 'delete_attachment_data' ) );
add_filter( 'get_post_metadata', array( $this, 'get_post_metadata' ), 10, 4 );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |