do_faviconico
Action HookDescription
Fires when serving the favicon.ico file.Hook Information
File Location |
wp-includes/functions.php
View on GitHub
|
Hook Type | Action |
Line Number | 1747 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into do_faviconico
add_action('do_faviconico', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/functions.php:1747
- How this hook is used in WordPress core
<?php
1742 /**
1743 * Fires when serving the favicon.ico file.
1744 *
1745 * @since 5.4.0
1746 */
1747 do_action( 'do_faviconico' );
1748
1749 wp_redirect( get_site_icon_url( 32, includes_url( 'images/w-logo-blue-white-bg.png' ) ) );
1750 exit;
1751 }
1752
PHP Documentation
<?php
/**
* Fires when serving the favicon.ico file.
*
* @since 5.4.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/functions.php
Related Hooks
Related hooks will be displayed here in future updates.