您可以看到customizer API以设置默认图标。我想这应该可以做到:
function mytheme_customize_register( $wp_customize ) {
$wp_customize->add_setting( \'site_icon\' , array(
\'default\' => get_bloginfo(\'template_url\') . \'/images/logo.png\',
) );
}
add_action( \'customize_register\', \'mytheme_customize_register\' );