Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > Predefined Filters for WooCommerce Documents

Predefined Filters for WooCommerce Documents

Last updated on December 18, 2023

WooCommerce PDF Invoices, Packing Slips, and Credit Notes plugin handles various E-Commerce document requirements. Apart from existing features, the plugin also provides additional filters to extend the plugin’s functionality through Filters. The Filters insert common functionality across all the WooCommerce document types. Filters can be found at, Invoice/ Packing > General Settings > Filters.

Filters can be expanded to get its code snippet and copy the code. Add the custom code snippet to the WordPress site which is currently in use. Add it to the active child theme’s functions.php file, or use a third-party plugin for the addition. To know more about how to add a custom code snippet using a third-party plugin, refer to this article.

Help Guide
Help Guide

Filter to show/hide the ‘Received’ seal

The filter wf_pklist_toggle_received_seal can be used to hide the received seal in the invoice for refunded orders.

  • Scroll down the page and locate the filter.
  • Then, expand the code and copy the code as shown below:
  • Next, paste the code into the functions.php of the active theme file.

Filter to show the ‘Received’ seal only for completed orders

Add the custom code snippet to print the Received seal for the completed order status. Add it to the active child theme’s functions.php file or use a third-party plugin for the addition. To know more about how to add a custom code snippet using a third-party plugin, refer to this article.

Filter to show the ‘Canceled’ seal for canceled orders

Add the code snippet to show the ‘Canceled seal’ for canceled orders and the ‘Received seal’ for completed orders. Add it to the active child theme’s functions.php file, or use a third-party plugin for the addition. To know more about how to add a custom code snippet using a third-party plugin, refer to this article.