WordPress: Add a favicon in the admin
No real interest in adding a favicon to the WordPress admin area, but a client may request it, which has already happened: function favicon(){ echo '<link rel="shortcut icon" href="',get_template_directory_uri(),'/images/favicon.ico" />',"\n"; } add_action('admin_head','favicon'); Reproduce this customization today The principle of the hook remains useful, but the administration screens and WordPress APIs have evolved since the publication. Test the code in a staging enviro...