add_section( 'afsa_woocommerce_section', __( 'WooCommerce Settings', 'afsanalytics' ), function() { // optional description } ); /* unused / deprecated $this->add_checkboxes( array( 'woocommerce_usertracking' => __( 'Track customer profile', 'afsanalytics' ), ) ); */ add_settings_field( 'woocommerce_shop_affiliation', __( 'Default sales Chanel', 'afsanalytics' ), function() { print 'input_name( 'woocommerce_shop_affiliation' ) . 'value=' . ( empty( $this->settings['woocommerce_shop_affiliation'] ) ? '' : 'WooCommerce' ) . '>' . '

' . __( 'The name of default the sale channel you want to be shown as origin of any order processed by WooCommerce.', 'afsanalytics' ) . '

'; }, $this->page, $this->section_id ); } }