wcv_order_table_columns

Description

apply_filters( 'wcv_order_table_columns', array( $attributes ) )

Parameters (1) (array)

Sample

array( 
  'ID'      => __( 'ID',      'wcvendors-pro' ), 
  'order_number'  => __( 'Order',     'wcvendors-pro' ),
  'customer'    => __( 'Customer',    'wcvendors-pro' ),
  'products'    => __( 'Products',    'wcvendors-pro' ), 
  'total'     => __( 'Total',     'wcvendors-pro' ), 
  'status'      => __( 'Shipped',     'wcvendors-pro' ), 
  'order_date'    => __( 'Order Date',  'wcvendors-pro' ), 
)

 

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcv_order_table_columns', array( $attributes ) );
  if ( ! empty( $value ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_order_table_columns callback
function my_filter_function( $param ) {
  // do your thing here :-) ... 

  return $array_val;
}
add_filter( 'wcv_order_table_columns', 'my_filter_function, 10, 1 );

To remove the filter, copy this sample

//remove the filter
remove_filter( 'wcv_order_table_columns', 'my_filter_function, 10, 1 );

Defined

This filter is defined in the following source file(s)

  • wcvendors-pro/public/class-wcvendors-pro-order-controller.php line 330
    $columns = apply_filters( 'wcv_order_table_columns', array(

filters

Updated on January 9, 2017

Was this article helpful?