wcpgsk_external_cart_button_text

Personalize Add to Cart Button.

Description

wcpgsk_external_cart_button_text( $label ); 

Parameters (1)

0. $label
The label.

Usage

  1. if ( !function_exists( 'wcpgsk_external_cart_button_text' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-poor-guys-swiss-knife/wcpgsk-af.php'; 
  3.  
  4. // The label. 
  5. $label = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wcpgsk_external_cart_button_text($label); 
  9.  

Defined (1)

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

/wcpgsk-af.php  
  1. function wcpgsk_external_cart_button_text($label) { 
  2. $options = get_option( 'wcpgsk_settings' ); 
  3. $cart_btn_text = ((!empty($options['process']['readmorebtn'])) ? __($options['process']['readmorebtn'], WCPGSK_DOMAIN) : $label); 
  4. if ($cart_btn_text && $cart_btn_text != '') 
  5. return $cart_btn_text; 
  6. else return __('Read more', WCPGSK_DOMAIN);