validator_changename

The WooCommerce Checkout Manager validator changename function.

Description

validator_changename(); 

Usage

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

Defined (1)

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

/includes/classes/main.php  
  1. function validator_changename() { 
  2. $options = get_option( 'wccs_settings' ); 
  3. if ( !empty($options['buttons']) ) { 
  4. foreach ( $options['buttons'] as $btn ) : 
  5. if (!empty($btn['type']) ) { 
  6. if ( $btn['type'] == 'changename' && !empty($btn['label']) ) { 
  7. return true; 
  8. endforeach;