Skip to Content

favicon_cache()

Redirect to the favicon to help force-clear a cached version.

PHP April 19, 2017

Usage

This function runs automatically, so it is not called manually. Is this incorrect?

Additional Notes

This works on any URL with ?favicon or&favicon in the query string.

Source File

Located in /libs/Functions.php on line 350.

No Hooks

This function does not have any filters or actions available. Request one?
PHP
    public function favicon_cache(){
        if ( array_key_exists('favicon', $_GET) ){
            header('Location: ' . get_theme_file_uri('/assets/img/meta') . '/favicon.ico');
            exit;
        }
    }

Override

This function can not be short-circuited with an override filter. Request one?