add_section( 'acommerce_woocommerce_shop_page_sections', array( 'title' => esc_html__( 'Shop Page Settings', 'acommerce' ), 'priority' => 2, 'panel' => 'woocommerce_setting' ) ); //Woocommerce Shop Page Settings $wp_customize->add_setting( 'acommerce_woocommerce_products_per_page', array( 'default' => 12, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'acommerce_woocommerce_products_per_page', array( 'section' => 'acommerce_woocommerce_shop_page_sections', 'label' => esc_html__( 'Shop Page Products', 'acommerce' ), 'description' => esc_html__( 'Number of products in shop page.', 'acommerce' ), 'type' => 'number', 'priority' => 1 ) ); //Woocommerce Shop Page Settings $wp_customize->add_setting( 'acommerce_woocommerce_loop_columns', array( 'default' => 3, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'acommerce_woocommerce_loop_columns', array( 'section' => 'acommerce_woocommerce_shop_page_sections', 'label' => esc_html__( 'Shop Page Products Columns', 'acommerce' ), 'description' => esc_html__( 'Display the Shop Page Columns', 'acommerce' ), 'type' => 'number', 'priority' => 1 ) ); // //Woocommerce Settings $wp_customize->add_section( 'acommerce_woocommerce_single_page_sections', array( 'title' => esc_html__( 'Single Page Settings', 'acommerce' ), 'priority' => 1, 'panel' => 'woocommerce_setting' ) ); //Woocommerce Shop Page Settings $wp_customize->add_setting( 'acommerce_woocommerce_related_products_posts_per_page', array( 'default' => 6, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'acommerce_woocommerce_related_products_posts_per_page', array( 'section' => 'acommerce_woocommerce_single_page_sections', 'label' => esc_html__( 'Single Page Related Products Count', 'acommerce' ), 'description' => esc_html__( 'Number of Related Products Count.', 'acommerce' ), 'type' => 'number', 'priority' => 2 ) ); //Woocommerce Shop page Settings $wp_customize->add_setting( 'acommerce_woocommerce_related_products_columns', array( 'default' => 3, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'acommerce_woocommerce_related_products_columns', array( 'section' => 'acommerce_woocommerce_single_page_sections', 'label' => esc_html__( 'Single Page Related Products Columns', 'acommerce' ), 'description' => esc_html__( 'Number of related products columns.', 'acommerce' ), 'type' => 'number', 'priority' => 3 ) ); //Releated Product $wp_customize->add_setting( 'acommerce_relate_product_subtitle', array( 'default' => esc_html__( 'EXPLORE THE AWESOME', 'acommerce' ), 'sanitize_callback' => 'sanitize_text_field' //removes all HTML from content ) ); $wp_customize->add_control( 'acommerce_relate_product_subtitle', array( 'label' => esc_html__( 'Related Produt Sub Title', 'acommerce' ), 'section' => 'acommerce_woocommerce_single_page_sections', 'type' => 'text' ) ); //Releated Product title $wp_customize->add_setting( 'acommerce_relate_product_title', array( 'default' => esc_html__( 'Our Amazing Products', 'acommerce' ), 'sanitize_callback' => 'sanitize_text_field' //removes all HTML from content ) ); $wp_customize->add_control( 'acommerce_relate_product_title', array( 'label' => esc_html__( 'Related Produt Title', 'acommerce' ), 'section' => 'acommerce_woocommerce_single_page_sections', 'type' => 'text' ) ); } add_action( 'customize_register', 'acommerce_customize_woocommerce_settings' );