do_favicon
Fired when the template loader determines a favicon.ico request.
Usage
add_action( 'do_favicon', 'wp_kama_do_favicon_action' ); /** * Function for `do_favicon` action-hook. * * @return void */ function wp_kama_do_favicon_action(){ // action... }
Changelog
Since 5.4.0 | Introduced. |
Where the hook is called
In file: /wp-includes/template-loader.php
wp-includes/template-loader.php 45
do_action( 'do_favicon' );
Where the hook is used in WordPress
wp-includes/default-filters.php 407
add_action( 'do_favicon', 'do_favicon' );