📜  wp_customize_image_control - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:10.293000             🧑  作者: Mango

代码示例2
$wp_customize->add_control(
       new WP_Customize_Image_Control(
           $wp_customize,
           'logo',
           array(
               'label'      => __( 'Upload a logo', 'theme_name' ),
               'section'    => 'your_section_id',
               'settings'   => 'your_setting_id',
               'context'    => 'your_setting_context'
           )
       )
   );