wcdn_order_items_data

The WooCommerce Print Invoices & Delivery Notes wcdn order items data hook.

Description

apply_filters( 'wcdn_order_items_data', (unknown) $data_list ); 

Parameters (1)

0. $data_list (unknown)
The data list.

Usage

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

Defined (1)

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

/classes/class-wcdn-print.php  
  1. return apply_filters( 'wcdn_order_items_data', $data_list );