Displays the favicon.ico file content.
Source
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;
}
Hooks
- do_action( ‘do_faviconico’ )
Fires when serving the favicon.ico file.
Changelog
Version | Description |
---|---|
5.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.