do_favicon() WordPress Function
The do_favicon() function is used to display a favicon on a WordPress site. A favicon is a small icon that represents a website or a specific page on a website. The favicon is usually displayed in the browser's address bar, in the browser's tab bar, and in bookmark lists.
do_favicon() #
Display the favicon.ico file content.
Source
File: wp-includes/functions.php
function do_favicon() {
/**
* Fires when serving the favicon.ico file.
*
* @since 5.4.0
*/
do_action( 'do_faviconico' );
wp_redirect( get_site_icon_url( 32, includes_url( 'images/w-logo-blue-white-bg.png' ) ) );
exit;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.4.0 | Introduced. |