wccm_after_checkout

The WooCommerce Checkout Manager wccm after checkout function.

Description

wccm_after_checkout(); 

Usage

  1. if ( !function_exists( 'wccm_after_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_after_checkout(); 
  7.  

Defined (1)

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

/includes/classes/main.php  
  1. function wccm_after_checkout() { 
  2. $options = get_option( 'wccs_settings' ); 
  3.  
  4. foreach ( $options['buttons'] as $btn ) : 
  5.  
  6. if ( $btn['type'] == 'changename' ) { 
  7. $content = ob_get_clean(); 
  8. echo str_replace( ''.$btn['changenamep'].'', ''.$btn['changename'].'', $content);  
  9. endforeach;