wcv_orders_table_rows

Description

apply_filters( 'wcv_orders_table_rows', $rows )

Parameters (1) (array)

Sample

$new_row = new stdClass(); 
// ...

$new_row->ID      = $order->get_order_number(); 
$new_row->order_number  = $order->get_order_number(); 
$new_row->customer    = $customer_details; 
$new_row->products    = $products_html;
$new_row->total     = $total_text;
$new_row->status    = $shipped;
$new_row->order_date  = date_i18n( wc_date_format(), strtotime( $order->order_date ) ) . '<br /><strong>' . ucfirst( $order->get_status() ) . '</strong>'; 
$new_row->row_actions   = $row_actions; 
$new_row->action_after  = $this->order_details_template( $_order ) . $this->order_note_template( $order->get_order_number() ) . $this->tracking_number_template( $order->get_order_number(), get_current_user_id() ); 

do_action( 'wcv_orders_add_new_row', $new_row ); 

$rows[] = $new_row;
// ...

 

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcv_orders_table_rows', $rows );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

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

To remove the filter, copy this sample

//remove the filter
remove_filter( 'wcv_orders_table_rows', '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 539
    return apply_filters( 'wcv_orders_table_rows', $rows );

filters

Updated on January 9, 2017

Was this article helpful?