wpg_order_columns

Set necessary variables.

Description

apply_filters( 'wpg_order_columns', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'wc_settings_tab_order_id'=>__( 'Order ID', 'woocommerce-simply-order-export' ), 'wc_settings_tab_customer_name'=>__( 'Customer Name', 'woocommerce-simply-order-export' ), 'wc_settings_tab_product_name'=>__( 'Product Name', 'woocommerce-simply-order-export' ), 'wc_settings_tab_product_quantity'=>__( 'Product Quantity', 'woocommerce-simply-order-export' ), 'wc_settings_tab_product_variation'=>__( 'Variation details', 'woocommerce-simply-order-export' ), 'wc_settings_tab_amount'=> __( 'Order Amount', 'woocommerce-simply-order-export' ), 'wc_settings_tab_customer_email'=> __( 'Customer Email', 'woocommerce-simply-order-export' ), 'wc_settings_tab_customer_phone'=>__( 'Phone Number', 'woocommerce-simply-order-export' ), 'wc_settings_tab_order_status'=>__( 'Order Status', 'woocommerce-simply-order-export' ) )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'wpg_order_columns', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wpg_order_columns callback 
  2. function filter_wpg_order_columns( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wpg_order_columns', 'filter_wpg_order_columns', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wpg_order_columns', 'filter_wpg_order_columns', 10, 1 ); 

Defined (1)

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

/main.php  
  1. $this->wpg_order_columns = apply_filters( 'wpg_order_columns', array(