wpo_wcpdf_after_document

The WooCommerce PDF Invoices & Packing Slips wpo wcpdf after document hook.

Description

do_action( 'wpo_wcpdf_after_document', (unknown) $wpo_wcpdf_export_template_type, (unknown) $wpo_wcpdf_export_order ); 

Parameters (2)

0. $wpo_wcpdf_export_template_type (unknown)
The wpo wcpdf export template type.
1. $wpo_wcpdf_export_order (unknown)
The wpo wcpdf export order.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wpo_wcpdf_after_document', $wpo_wcpdf_export_template_type, $wpo_wcpdf_export_order ); 
The following example is for adding a hook callback.
  1. // define the wpo_wcpdf_after_document callback 
  2. function action_wpo_wcpdf_after_document( $wpo_wcpdf_export_template_type, $wpo_wcpdf_export_order ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wpo_wcpdf_after_document', 'action_wpo_wcpdf_after_document', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wpo_wcpdf_after_document', 'action_wpo_wcpdf_after_document', 10, 2 ); 

Defined (2)

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

/templates/pdf/Simple/packing-slip.php  
  1. <?php do_action( 'wpo_wcpdf_after_document', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?> 
/templates/pdf/Simple/invoice.php  
  1. <?php do_action( 'wpo_wcpdf_after_document', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?>