wc_get_account_downloads_columns

Get My Account > Downloads columns.

Description

(array) wc_get_account_downloads_columns(); 

Returns (array)


Usage

  1. if ( !function_exists( 'wc_get_account_downloads_columns' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-account-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_get_account_downloads_columns(); 
  7.  

Defined (1)

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

/includes/wc-account-functions.php  
  1. function wc_get_account_downloads_columns() { 
  2. $columns = apply_filters( 'woocommerce_account_downloads_columns', array( 
  3. 'download-product' => __( 'Product', woocommerce ),  
  4. 'download-remaining' => __( 'Downloads remaining', woocommerce ),  
  5. 'download-expires' => __( 'Expires', woocommerce ),  
  6. 'download-file' => __( 'File', woocommerce ),  
  7. 'download-actions' => ' ',  
  8. ) ); 
  9.  
  10. if ( ! has_filter( 'woocommerce_account_download_actions' ) ) { 
  11. unset( $columns['download-actions'] ); 
  12.  
  13. return $columns;