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 );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.