'title', 'id' => 'section_title', ), // array( // 'name' => esc_html__('Allow custom field names', 'woocommerce-checkout-manager'), // 'desc_tip' => esc_html__('Show the selected fields in the thankyou page.', 'woocommerce-checkout-manager'), // 'id' => 'wooccm_allow_custom_field_names', // 'type' => 'select', // 'class' => 'chosen_select', // 'options' => array( // 'yes' => esc_html__('Yes', 'woocommerce-checkout-manager'), // 'no' => esc_html__('No', 'woocommerce-checkout-manager'), // ), // 'default' => 'no', // ), array( 'name' => esc_html__( 'Export custom fields', 'woocommerce-checkout-manager' ), 'desc_tip' => esc_html__( 'Include custom fields in CSV export files generated by WooCommerce Customer / Order / Coupon Export.', 'woocommerce-checkout-manager' ), 'id' => 'wooccm_export_custom_fields', 'type' => 'select', 'class' => 'chosen_select wooccm-premium-field', 'desc' => esc_html__( 'This is a premium feature.', 'woocommerce-checkout-manager' ), 'options' => array( 'yes' => esc_html__( 'Yes', 'woocommerce-checkout-manager' ), 'no' => esc_html__( 'No', 'woocommerce-checkout-manager' ), ), 'default' => 'yes', ), array( 'name' => esc_html__( 'Custom CSS', 'woocommerce-checkout-manager' ), 'desc_tip' => esc_html__( 'Add custom stylesheets to the checkout page.', 'woocommerce-checkout-manager' ), 'id' => 'wooccm_advanced_custom_css', 'type' => 'textarea', 'placeholder' => '', ), array( 'type' => 'sectionend', 'id' => 'section_end', ), ); } // Admin // ------------------------------------------------------------------------- public function add_header() { global $current_section; ?>
  • |
  • get_settings(); include_once WOOCCM_PLUGIN_DIR . 'lib/view/backend/pages/advanced.php'; } } public function save_settings() { global $current_section; if ( 'advanced' == $current_section ) { woocommerce_update_options( $this->get_settings() ); } } public function custom_css_w( $value ) { $options = get_option( 'wccs_settings' ); $css = isset( $options['checkness']['custom_css_w'] ) ? $options['checkness']['custom_css_w'] : false; if ( $css ) { return $css; } return $value; } }