WowInvoice 1.2.6 has 6 actions and 38 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when WowInvoice fires an action
add_action( 'winv_document_settings_saved', function( $type, $doc_data, $previous_settings ) {
// Your code runs here.
}, 10, 3 );
// Change a value WowInvoice is about to use
add_filter( 'winv_order_meta_rows', function( $value, $order, $arg3 ) {
// Change $value here.
return $value;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
Changes by version
1.2.5 → 1.2.6 · Nov 19, 2026 · 11 added, 0 removed
Added
- action
winv_document_settings_saved - filter
winv_creation_trigger_document_types - filter
winv_document_type_codes - filter
winv_mcp_document_types - filter
winv_mcp_expansion_tools - filter
winv_mcp_reviewed_settings_hook_output - filter
winv_mcp_settings_dependents - filter
winv_mcp_document_fields - filter
winv_mcp_setting_field - filter
winv_mcp_approved_metadata_keys - filter
winv_mcp_settings_issues
All hooks
-
/** * This filter is documented in * includes/templates/class-template-data-preparer.php. */ apply_filters( 'winv_order_meta_rows', array(), $order, array() ); -
/** * Opt registered document types into status-triggered initialization. */ apply_filters( 'winv_creation_trigger_document_types', array( 'inv', 'ps' ) ); -
/** * Runs after validated document settings have been persisted. */ do_action( 'winv_document_settings_saved', $type, $doc_data, $previous_settings ); -
/** * Filter print buttons rendered in WooCommerce customer emails. */ apply_filters( 'winv_email_document_print_buttons', $buttons, $order ); -
/** * Allow overriding mPDF constructor options. */ apply_filters( 'winv_mpdf_options', $options, $context ); -
/** * Filter the complete display data after calculations and row filters. */ apply_filters( 'winv_prepared_document_data', $prepared, $order, $data, $type ); -
/** * Filters complete candidate base paths; every candidate is checked. */ apply_filters( 'winv_private_temp_candidates', $candidates ); -
/** * Filters absolute web-served roots, including host-specific aliases. */ apply_filters( 'winv_public_storage_roots', $roots ); -
apply_filters( 'winv_order_data_helper', __CLASS__ ); -
do_action( 'winv_invoice_body_close', $this ); -
do_action( 'winv_invoice_body_open', $this ); -
apply_filters( 'winv_document_settings_before_save', $doc_data, $type ); -
apply_filters( 'winv_admin_data', array( 'ajax' => admin_url( 'admin-ajax.php' ), 'canManageMcp' => current_user_can( 'manage_options' ) ? 'yes' : 'no', 'mcpAdapterUrl' => current_user_can( 'install_plugins' ) || current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : '', 'applicationPasswordsUrl' => admin_url( 'profile.php#application-passwords-section' ), 'adminPost' => admin_url( 'admin-post.php' ), 'url' => WI... ); -
apply_filters( 'winv_affiliate_id', '' ); -
apply_filters( 'winv_builder_data_schema', $schema ); -
apply_filters( "winv_default_option_{$option}", $default_value, $option ); -
apply_filters( 'winv_document_definitions', array( 'inv' => array( 'class' => Invoice::class, 'label' => __( 'Invoice', 'wow-pdf-invoices-packing-slips' ), 'file_type' => 'PDF', 'can_print' => true, 'supports_frontend_download' => true, 'supports_custom_id' => true, ), 'ps' => array( 'class' => PackingSlip::class, 'label' => __( 'Packing Slip', 'wow-pdf-invoices-packing-slips' ), 'file_type' => 'PDF', 'can_print' => true, 'supports_front... ); -
apply_filters( 'winv_document_type_codes', array( 'inv' => 'i', 'cn' => 'c', 'ps' => 'p', 'pl' => 'l', 'dn' => 'n', 'sl' => 's', ) ); -
apply_filters( 'winv_get_allowed_html_tags', array() ); -
apply_filters( 'winv_mcp_approved_metadata_keys', array(), $key, $target['documentType'] ?? '' ); -
apply_filters( 'winv_mcp_document_fields', require __DIR__ . '/document-fields.php' ); -
apply_filters( 'winv_mcp_document_types', array( 'inv', 'ps', 'dn' ) ); -
apply_filters( 'winv_mcp_expansion_tools', $tools ); -
apply_filters( 'winv_mcp_reviewed_settings_hook_output', $candidate, $target ); -
apply_filters( 'winv_mcp_setting_field', array( 'key' => $key, 'schema' => $schema, 'choices' => $choices ?? $schema['enum'] ?? null, 'blockedReason' => $reason, 'dependsOn' => $dependency ), $target, $candidate ); -
apply_filters( 'winv_mcp_settings_dependents', $saved, $candidate, $target, $mode, $review['diff'] ); -
apply_filters( 'winv_mcp_settings_issues', $issues, $target, $candidate ); -
apply_filters( "winv_option_{$option}", $value, $option ); -
do_action( 'winv_order_refund_created', $order ); -
apply_filters( 'winv_pdf_asset_directories', array( $uploads['basedir'], WINV_PATH . 'assets' ) ); -
apply_filters( 'winv_pro_renew_link', $default_link ); -
apply_filters( 'winv_rest_classes', $classes ); -
apply_filters( 'winv_script_dependencies', $assets['dependencies'], $handle, $script_name ); -
apply_filters( 'winv_show_upsell', true ); -
apply_filters( 'winv_template_address_columns', $address_columns, $order, $context ); -
apply_filters( 'winv_template_customer_info', $card, $order, $context ); -
apply_filters( 'winv_template_data_preparer', TemplateDataPreparer::class ); -
apply_filters( 'winv_template_map', self::$template_map ); -
apply_filters( "winv_transient_{$transient}", get_transient( $transient ), $transient ); -
apply_filters( 'winv_verification_summary_rows', null, $order, $doc_type ); -
do_action( 'woocommerce_email_header', $notification_heading, $notification_email ); -
apply_filters( 'xpo_active_notice_lists', array() );
Generated from WowInvoice's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: