wcpgsk_qty_input_args

The Woocommerce Poor Guys Swiss Knife wcpgsk qty input args function.

Description

wcpgsk_qty_input_args( $argss ); 

Parameters (1)

0. $argss
The argss.

Usage

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

Defined (1)

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

/wcpgsk-af.php  
  1. function wcpgsk_qty_input_args($argss) { 
  2. global $wcpgsk_session, $woocommerce; 
  3.  
  4. if ( !isset($wcpgsk_session) ) : 
  5. $wcpgsk_session = $woocommerce->session; 
  6. endif; 
  7. if ( isset($wcpgsk_session) && isset($args) && !empty($args) ) :  
  8. $wcpgsk_session->qtyargs = $args; 
  9. endif; 
  10. return $args;