1. Home
  2. WC Vendors Pro
  3. Developer Documentation
  4. Pro Filter Hooks
  5. wcv_orders_row_actions_$order->get_order_number

wcv_orders_row_actions_$order->get_order_number

Description

apply_filters( 'wcv_orders_row_actions_' . $order->get_order_number(), array( $attributes ), $order->get_order_number() )

Parameters (2) (array), (string)

Sample

array( 
  'view_details'    => 
    array(  
      'label'   => __( 'View Order Details',    'wcvendors-pro' ), 
      'url'     => '#', 
      'custom'  => array( 
        'id'      => 'open-order-details-modal-' . $order->get_order_number(), 
      ),
    ), 
  'print_label'   => 
    array(  
      'label'   => __( 'Shipping Label',  'wcvendors-pro' ), 
      'url'     => '?wcv_shipping_label='. $order->get_order_number(), 
      'target'  => '_blank' 
    ), 
  'add_note'    => 
    array(  
      'label'   => __( 'Order Note',    'wcvendors-pro' ), 
      'url'     => '#', 
      'custom'  => array( 
        'id'      => 'open-order-note-modal-' . $order->get_order_number(), 
      ),
    ), 
  'add_tracking'  => 
    array(  
      'label'   => __( 'Tracking Number',   'wcvendors-pro' ), 
      'url'     => '#', 
      'custom'  => array( 
        'id'      => 'open-tracking-modal-' . $order->get_order_number(), 
      ),
    ),  
)

 

Usage Examples

To run the filter, copy this sample

// hand edit this example
$array_val = apply_filters( 'wcv_orders_row_actions_' . $order->get_order_number(), array( $attributes ), $order->get_order_number() );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_orders_row_actions_$order->get_order_number callback
function my_filter_function( $param1, $param2 ) {
  // do your thing here :-) ... 

  return $array_val; 
}
add_filter( 'wcv_orders_row_actions_' . $order->get_order_number(), 'my_filter_function', 10, 2 );

To remove the filter, copy this sample

//remove the filter
remove_filter( 'wcv_orders_row_actions_' . $order->get_order_number(), 'my_filter_function', 10, 2 );

Defined

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

  • wcvendors-pro/public/class-wcvendors-pro-order-controller.php line 434
    $row_actions = apply_filters( 'wcv_orders_row_actions_' . $order->get_order_number(), array(

filters

Updated on January 9, 2017

Was this article helpful?