Skip to Content
Menu

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.

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

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

    No Hooks

    This function does not have any filters or actions available. Request one?
    PHP
            public function favicon_cache(){
                if ( array_key_exists('favicon', $this->super->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?