umf_my_orders_columns

The WooCommerce Upload My File umf my orders columns function.

Description

umf_my_orders_columns( $columns ); 

Parameters (1)

0. $columns
The columns.

Usage

  1. if ( !function_exists( 'umf_my_orders_columns' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-upload-my-file/inc/umf-funct.php'; 
  3.  
  4. // The columns. 
  5. $columns = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = umf_my_orders_columns($columns); 
  9.  

Defined (1)

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

/inc/umf-funct.php  
  1. function umf_my_orders_columns($columns) { 
  2.  
  3. if (is_array($columns)) { 
  4.  
  5. $new_columns = array(); 
  6.  
  7. foreach ($columns AS $column_key => $column_title) { 
  8.  
  9. $new_columns[$column_key] = $column_title; 
  10.  
  11. if ($column_key == 'order-total') { 
  12. $new_columns['order-uploads'] = __( 'Files', 'woocommerce-umf'); 
  13.  
  14.  
  15.  
  16. return $new_columns;