wooccm_js_array

The WooCommerce Checkout Manager wooccm js array function.

Description

wooccm_js_array( $array ); 

Parameters (1)

0. $array
The array.

Usage

  1. if ( !function_exists( 'wooccm_js_array' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-checkout-manager/includes/classes/file_upload/main_upload.php'; 
  3.  
  4. // The array. 
  5. $array = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wooccm_js_array($array); 
  9.  

Defined (1)

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

/includes/classes/file_upload/main_upload.php  
  1. function wooccm_js_array($array) 
  2. $temp = array_map('wooccm_js_str', $array); 
  3. return '[' . implode(', ', $temp) . ']';