wccm_before_checkout

The WooCommerce Checkout Manager wccm before checkout function.

Description

wccm_before_checkout(); 

Usage

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

Defined (1)

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

/includes/classes/main.php  
  1. function wccm_before_checkout() { 
  2. $options = get_option( 'wccs_settings' ); 
  3.  
  4. foreach ( $options['buttons'] as $btn ) : 
  5. $label = ( isset( $btn['label'] ) ) ? $btn['label'] : ''; 
  6. ob_start(); 
  7. endforeach;