umf_my_orders_uploads_column

The WooCommerce Upload My File umf my orders uploads column function.

Description

umf_my_orders_uploads_column( $order ); 

Parameters (1)

0. $order
The order.

Usage

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

Defined (1)

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

/inc/umf-funct.php  
  1. function umf_my_orders_uploads_column($order) 
  2.  
  3. if(check_for_files($order->id)=='upload') { 
  4. echo '<a href="'.$order->get_view_order_url().'">'.__( 'Upload', 'woocommerce-umf' ).'</a>'; 
  5. } elseif(check_for_files($order->id)=='blank') { echo '-'; } 
  6.