为了添加上载选项,我在函数页上添加了以下代码:
add_action( \'customize_register\', \'custom_logo_uploader\' );
function custom_logo_uploader($wp_customize) {
$wp_customize->add_section( \'upload_custom_logo\', array(
\'title\' => \'Logo\',
\'description\' => \'Display a custom logo?\',
\'priority\' => 25,
) );
$wp_customize->add_setting( \'custom_logo\', array(
\'default\' => \'\',
) );
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, \'custom_logo\', array(
\'label\' => \'Custom logo\',
\'section\' => \'upload_custom_logo\',
\'settings\' => \'custom_logo\',
) ) );
}
我的问题是如何在同一节中添加多个图片选项?