atom_site_icon() WordPress Function

The atom_site_icon() function allows you to set a custom site icon for your WordPress site. This icon will be used as the favicon, mobile icon, and Touch icon for your site. You can upload your own icon, or use one of the default icons that comes with WordPress.

atom_site_icon() #

Displays Site Icon in atom feeds.


Description

Top ↑

See also


Top ↑

Source

File: wp-includes/feed.php

function atom_site_icon() {
	$url = get_site_icon_url( 32 );
	if ( $url ) {
		echo '<icon>' . convert_chars( $url ) . "</icon>\n";
	}
}


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.