wc_get_account_orders_columns

Get My Account > Orders columns.

Description

(array) wc_get_account_orders_columns(); 

Returns (array)


Usage

  1. if ( !function_exists( 'wc_get_account_orders_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_orders_columns(); 
  7.  

Defined (1)

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

/includes/wc-account-functions.php  
  1. function wc_get_account_orders_columns() { 
  2. $columns = apply_filters( 'woocommerce_account_orders_columns', array( 
  3. 'order-number' => __( 'Order', woocommerce ),  
  4. 'order-date' => __( 'Date', woocommerce ),  
  5. 'order-status' => __( 'Status', woocommerce ),  
  6. 'order-total' => __( 'Total', woocommerce ),  
  7. 'order-actions' => __( 'Actions', woocommerce ),  
  8. ) ); 
  9.  
  10. // Deprecated filter since 2.6.0. 
  11. return apply_filters( 'woocommerce_my_account_my_orders_columns', $columns );