示例#1
0
 /**
  * Display site icon.
  *
  * @since 2.2.1
  */
 function presscore_site_icon()
 {
     if (is_customize_preview()) {
         return;
     }
     // display favicon
     echo presscore_get_favicon();
     $meta_tags = presscore_get_device_icons();
     foreach ($meta_tags as $meta_tag) {
         echo "{$meta_tag}\n";
     }
 }
 /**
  * Remove wp_site_icon hook if favicons set in theme options.
  * @since 2.3.1
  */
 function presscore_admin_remove_wp_site_icon()
 {
     if (presscore_get_favicon() || presscore_get_device_icons()) {
         remove_action('admin_head', 'wp_site_icon');
     }
 }