do_favicon()WP 5.4.0

Displays the favicon.ico file content.

Hooks from the function

Return

null. Nothing (null).

Usage

do_favicon();

Changelog

Since 5.4.0 Introduced.

do_favicon() code WP 6.5.4

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