array( 'name' => '', 'type' => 'title', 'desc' => '', 'id' => 'woo_cart_redirect_to_section_title' ), 'woo_cart_redirect_to' => array( 'name' => esc_html__( 'Add to Cart redirect to', 'add-to-cart-redirect' ), 'id' => 'woo_cart_redirect_to', 'default' => absint( get_option( 'woocommerce_checkout_page_id' ) ), 'type' => 'single_select_page', 'class' => 'wc-enhanced-select-nostd', 'css' => 'min-width:300px;', 'desc' => esc_html__( 'After adding product to cart, page will redirect to the selected page.', 'add-to-cart-redirect' ), ), 'section_end' => array( 'type' => 'sectionend', 'id' => 'woo_cart_redirect_to_section_end' ) ); return apply_filters( 'wc_cart_redirect_to_settings', $settings ); } }