我如何在定制器woocommerce部分下添加选项?

在定制器woocommerce部分下添加选项

定制程序部分的名称是什么?我想在定制程序woocommerce部分下添加一个字段选项。或者如何在woocommerce选项下添加字段?有人可以帮我吗?

$wp_customize->add_section( 'woocommerce_secction_name' , array(
        'title'    => __( 'My Section Name', 'starter' ), 'priority' => 30
    ) );   

    $wp_customize->add_setting( 'starter_new_setting_name' , array(
        'default'   => '#000000', 'transport' => 'refresh', ) );

    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'link_color', array(
        'label'    => __( 'Header Color', 'starter' ), 'section'  => 'woocommerce_secction_name', 'settings' => 'starter_new_setting_name', ) ) );

#1


// Add section to WooCommerce Panel
$wp_customize->add_section( 'SECTION_NAME', array(
    'title'      => __( 'SECTION TITLE'), 'panel'      => 'woocommerce', 'capability' => '', 'priority'   => 500, )
);

重要的是面板名称, 如你所见, 选择woocommerce它将添加到woocomerce面板中

来源:

https://www.srcmini02.com/63528.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41804.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?