wccs_positioning

The WooCommerce Checkout Manager wccs positioning function.

Description

wccs_positioning(); 

Usage

  1. if ( !function_exists( 'wccs_positioning' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-checkout-manager/includes/classes/main.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wccs_positioning(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/classes/main.php  
  1. function wccs_positioning() { 
  2. $options = get_option( 'wccs_settings' ); 
  3. if ( $options['checkness']['position'] == 'before_shipping_form' ) { 
  4. return 'before_shipping_form'; 
  5. }elseif( $options['checkness']['position'] == 'after_shipping_form' ) { 
  6. return 'after_shipping_form'; 
  7. }elseif( $options['checkness']['position'] == 'before_billing_form' ) { 
  8. return 'before_billing_form'; 
  9. }elseif( $options['checkness']['position'] == 'after_billing_form' ) { 
  10. return 'after_billing_form'; 
  11. }elseif( $options['checkness']['position'] == 'after_order_notes' ) { 
  12. return 'after_order_notes';