wpo_wcpdf_processed_template_html

The WooCommerce PDF Invoices & Packing Slips wpo wcpdf processed template html hook.

Description

apply_filters( 'wpo_wcpdf_processed_template_html', (unknown) $this_process_template_template_type_order_ids, (unknown) $template_type, (unknown) $order_ids ); 

Parameters (3)

0. $this_process_template_template_type_order_ids (unknown)
The this process template template type order ids.
1. $template_type (unknown)
The template type.
2. $order_ids (unknown)
The order ids.

Usage

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

Defined (1)

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

/includes/class-wcpdf-export.php  
  1. $html = apply_filters( 'wpo_wcpdf_processed_template_html', $this->process_template( $template_type, $order_ids ), $template_type, $order_ids );