📜  wp_customize 图像 - PHP 代码示例

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

代码示例1
$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'
           )
       )
   );