Invoice Payment 1.3.0 has 33 actions and 66 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 Invoice Payment fires an action
add_action( 'ipay_invoice_notification', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value Invoice Payment is about to use
add_filter( 'invoice_payment_process_payment_order_status', function( $value, $order ) {
// Change $value here.
return $value;
}, 10, 2 );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.
All hooks
-
/** * This action is documented in includes/Emails/Emails.php */ do_action( 'ipay_invoice_notification', $order->get_id() ); -
/** * Hook: woocommerce_email_header. */ do_action( 'woocommerce_email_header', $email_heading, $email ); -
/** * Filter the order status for Invoice Payment orders. */ apply_filters( 'invoice_payment_process_payment_order_status', $this->get_default_order_status( $order ), $order ); -
/** * Filters the dismissible admin notices. */ apply_filters( 'ipay_admin_notices', $notices ); -
/** * Fires when a tab registered by an add-on is rendered. */ do_action( "ipay_admin_tab_{$current_tab}", $current_tab ); -
/** * Filters the plugin admin tabs. */ apply_filters( 'ipay_admin_tabs', array( 'overview' => __( 'Overview', 'invoice-payment' ), 'documents' => __( 'Documents', 'invoice-payment' ), 'templates' => __( 'Templates', 'invoice-payment' ), 'settings' => __( 'Settings', 'invoice-payment' ), 'tools' => __( 'Tools', 'invoice-payment' ), ) ); -
/** * Filters whether a document is attached to an email. */ apply_filters( 'ipay_attach_document_to_email', $attach, $type->get_id(), $email_id, $order ); -
/** * Fires before a document is issued. */ do_action( 'ipay_before_document_generated', $order, $type ); -
/** * Filters the extra checkout fields. */ apply_filters( 'ipay_checkout_fields', $fields ); -
/** * Filters the third-party plugin integrations. */ apply_filters( 'ipay_compat_integrations', $integrations ); -
/** * Fires after a third-party plugin integration has been booted. */ do_action( 'ipay_compat_loaded', $folder, self::$loaded[ $folder ] ); -
/** * Filters whether the document fonts can draw a currency symbol. */ apply_filters( 'ipay_currency_symbol_drawable', (bool) preg_match( $drawable, $decoded ), $symbol, $currency ); -
/** * Filters the documents a customer can download for an order. */ apply_filters( 'ipay_customer_documents', $documents, $order ); -
/** * Fires after the daily tasks have run. */ do_action( 'ipay_daily_tasks_done' ); -
/** * Filters the default plugin options. */ apply_filters( 'ipay_default_options', $defaults ); -
/** * Filters the short code shown on the print button of a document type. */ apply_filters( 'ipay_document_abbreviation', $abbreviation, $type ); -
/** * Filters whether a customer may download a document. */ apply_filters( 'ipay_document_access', $available, $order, $type_object->get_id() ); -
/** * Fires for a document action the free plugin does not know. */ do_action( "ipay_document_action_{$action}", $order, $type, $document ); -
/** * Fires after a part of a document has been printed. */ do_action( "ipay_document_after_{$part}", $data ); -
/** * Fires before a part of a document is printed. */ do_action( "ipay_document_before_{$part}", $data ); -
/** * Filters the barcode and QR code payloads of a document. */ apply_filters( 'ipay_document_codes', $codes, $order, $type, $document ); -
/** * Filters the stylesheet of a document. */ apply_filters( 'ipay_document_css', $css, $data ); -
/** * Filters the data of a document before it is rendered. */ apply_filters( 'ipay_document_data', $data, $order, $type, $document ); -
/** * Fires after a document has been deleted. */ do_action( 'ipay_document_deleted', $document, $order ); -
/** * Filters the detail rows of a document. */ apply_filters( 'ipay_document_details', $details, $order, $type, $document ); -
/** * Filters the text direction of a document. */ apply_filters( 'ipay_document_direction', $direction, $locale ); -
/** * Filters the file name of a document. */ apply_filters( 'ipay_document_filename', $filename, $order, $type ); -
/** * Fires after a document has been issued. */ do_action( 'ipay_document_generated', $document, $order ); -
/** * Filters whether a document shows a detail. */ apply_filters( 'ipay_document_has_field', in_array( $field, $fields, true ), $field, $this ); -
/** * Filters a line item of a document. */ apply_filters( 'ipay_document_item', $row, $item, $order, $type ); -
/** * Filters the labels printed on a document. */ apply_filters( 'ipay_document_labels', $labels, $type ); -
/** * Filters the locale a document is written in. */ apply_filters( 'ipay_document_locale', get_locale(), $order ); -
/** * Fires for a document part that has no template file. */ do_action( "ipay_document_part_{$part}", $data ); -
/** * Filters the parts a document is built from, in print order. */ apply_filters( 'ipay_document_parts', $type->get_parts(), $type, $order ); -
/** * Filters the placeholders available in the footer and terms texts. */ apply_filters( 'ipay_document_placeholders', $replacements, $order, $document ); -
/** * Filters the row actions of the Documents list table. */ apply_filters( 'ipay_document_row_actions', $actions, $document ); -
/** * Fires just before a document is sent to the browser. */ do_action( 'ipay_document_served', $order, $type_object->get_id(), $is_staff ); -
/** * Filters the totals rows of a document. */ apply_filters( 'ipay_document_totals', $totals, $order, $document ); -
/** * Filters whether a document type is available for an order. */ apply_filters( 'ipay_document_type_available', $this->is_enabled() && $order instanceof \WC_Abstract_Order, $order, $this ); -
/** * Filters the document types. */ apply_filters( 'ipay_document_types', $types ); -
/** * Filters the customer-facing URL of a document. */ apply_filters( 'ipay_document_url', add_query_arg( $query, home_url( '/' ) ), $order_id, $type_object->get_id() ); -
/** * Filters the content of a custom column of the Documents list table. */ apply_filters( 'ipay_documents_table_column', '', $column_name, $document ); -
/** * Fires after the filters of the Documents list table. */ do_action( 'ipay_documents_table_filters' ); -
/** * Filters whether Dokan vendor sub-orders receive their own numbered * documents. */ apply_filters( 'ipay_dokan_invoice_sub_orders', false, $order ); -
/** * Filters the e-invoice formats. */ apply_filters( 'ipay_einvoice_formats', array( 'ubl' => __( 'UBL 2.1', 'invoice-payment' ), 'peppol' => __( 'Peppol BIS Billing 3.0', 'invoice-payment' ), ) ); -
/** * Filters the e-invoice XML before the built-in generator runs. */ apply_filters( 'ipay_einvoice_xml', null, $order, $document, $format ); -
/** * Filters the EPC QR code payload of an invoice. */ apply_filters( 'ipay_epc_payload', implode( "\n", $lines ), $order, $document ); -
/** * Filters the fonts offered as the main document font. */ apply_filters( 'ipay_font_choices', $choices ); -
/** * Fires after a font pack has been installed. */ do_action( 'ipay_font_pack_installed', $pack_id ); -
/** * Filters the downloadable font packs. */ apply_filters( 'ipay_font_packs', $packs ); -
/** * Filters the fonts available to the PDF engine. */ apply_filters( 'ipay_fontdata', $fontdata ); -
/** * Fires when the invoice of an order paid by invoice has just been issued. */ do_action( 'ipay_gateway_invoice_issued', $order, $document ); -
/** * Filters whether the Invoice Payment gateway passes its restrictions. */ apply_filters( 'ipay_gateway_passes_restrictions', $allowed, $this ); -
/** * Fires once the plugin has finished installing or upgrading. */ do_action( 'ipay_installed' ); -
/** * Fires when a document reaches a given status, e.g. `ipay_invoice_paid`. */ do_action( "ipay_invoice_{$status}", $document, $previous ); -
/** * Fires when the status of a document changes. */ do_action( 'ipay_invoice_status_changed', $document, $status, $previous ); -
/** * Filters the invoice statuses. */ apply_filters( 'ipay_invoice_statuses', array( self::ISSUED => __( 'Unpaid', 'invoice-payment' ), self::SENT => __( 'Sent', 'invoice-payment' ), self::PARTIAL => __( 'Partially paid', 'invoice-payment' ), self::PAID => __( 'Paid', 'invoice-payment' ), self::OVERDUE => __( 'Overdue', 'invoice-payment' ), self::VOID => __( 'Void', 'invoice-payment' ), ) ); -
/** * Filters whether money has been received for an order. */ apply_filters( 'ipay_is_order_paid', $paid, $order ); -
/** * Filters whether the Pro add-on is active. */ apply_filters( 'ipay_is_pro_active', defined( 'IPAY_PRO_VERSION' ) ); -
/** * Filters whether the reverse-charge note is printed on an invoice. */ apply_filters( 'ipay_is_reverse_charge', $reverse, $order ); -
/** * Filters the columns of the items table. */ apply_filters( 'ipay_items_columns', $columns, $type ); -
/** * Filters the label sizes. */ apply_filters( 'ipay_label_sizes', array( '4x6' => array( 'label' => __( '4 × 6 in (101.6 × 152.4 mm)', 'invoice-payment' ), 'width' => 101.6, 'height' => 152.4, ), '4x4' => array( 'label' => __( '4 × 4 in (101.6 × 101.6 mm)', 'invoice-payment' ), 'width' => 101.6, 'height' => 101.6, ), '100x150' => array( 'label' => __( '100 × 150 mm', 'invoice-payment' ), 'width' => 100, 'height' => 150, ), 'A6' => array( 'label' => __( '... ); -
/** * Filters the font used for a language. */ apply_filters( 'ipay_language_font', $font, $language ); -
/** * Fires once the plugin has finished loading its classes. */ do_action( 'ipay_loaded', $this ); -
/** * Filters the configuration of the PDF engine. */ apply_filters( 'ipay_mpdf_config', $config, $data ); -
/** * Filters the data a new document is stored with. */ apply_filters( 'ipay_new_document_data', $data, $order, $type ); -
/** * Filters a formatted document number. */ apply_filters( 'ipay_number_format', $formatted, $number, $type, $order ); -
/** * Filters the period of a number sequence. */ apply_filters( 'ipay_number_period', $period, $type ); -
/** * Filters the choices for restarting a number sequence. */ apply_filters( 'ipay_number_reset_options', $resets ); -
/** * Fires after the actions of a document in the order meta box. */ do_action( 'ipay_order_meta_box_document', $order, $ipay_type, $ipay_document ); -
/** * Fires at the end of the Overview tab. */ do_action( 'ipay_overview_after' ); -
/** * Filters the URL where an invoice can be paid online. */ apply_filters( 'ipay_pay_url', $url, $order ); -
/** * Fires when a payment reminder must be sent for an invoice. */ do_action( 'ipay_payment_reminder_notification', $document->order_id, $document ); -
/** * Filters the payment terms of an order, in days. */ apply_filters( 'ipay_payment_terms_days', (int) ipay_get_option( 'payment_terms', 14 ), $order ); -
/** * Fires after the PDF engine has been created and configured. */ do_action( 'ipay_pdf_engine', $engine, $data ); -
/** * Filters whether documents are being previewed. */ apply_filters( 'ipay_preview_mode', false ); -
/** * Filters the languages written right to left. */ apply_filters( 'ipay_rtl_languages', array( 'ar', 'he', 'fa', 'ur', 'ps', 'sd', 'ug', 'yi', 'dv' ) ); -
/** * Filters the plugin admin screen IDs. */ apply_filters( 'ipay_screen_ids', array( 'woocommerce_page_ipay' ) ); -
/** * Filters whether the built-in single reminder is sent for an invoice. */ apply_filters( 'ipay_send_default_reminder', true, $document ); -
/** * Fires after the fields of a settings section. */ do_action( 'ipay_settings_after_fields', $ipay_section ); -
/** * Filters the settings fields of a section. */ apply_filters( 'ipay_settings_fields', $fields, $section ); -
/** * Fires after the settings of another invoice plugin have been imported. */ do_action( 'ipay_settings_migrated', $source ); -
/** * Fires after the plugin settings have been saved. */ do_action( 'ipay_settings_saved', $section ); -
/** * Filters the sections of the Settings tab. */ apply_filters( 'ipay_settings_sections', array( 'general' => __( 'Shop details', 'invoice-payment' ), 'documents' => __( 'Documents', 'invoice-payment' ), 'numbering' => __( 'Numbering', 'invoice-payment' ), 'payment' => __( 'Invoice payment', 'invoice-payment' ), 'access' => __( 'Customer access', 'invoice-payment' ), 'einvoice' => __( 'E-invoicing', 'invoice-payment' ), 'advanced' => __( 'Advanced', 'invoice-payment' ), ) ); -
/** * Fires after the setup wizard has saved its choices. */ do_action( 'ipay_setup_completed' ); -
/** * Filters the folders searched for document templates, after the theme. */ apply_filters( 'ipay_template_paths', array( IPAY_PATH . 'templates/' ) ); -
/** * Filters the document templates. */ apply_filters( 'ipay_templates', array( 'modern' => array( 'label' => __( 'Modern', 'invoice-payment' ), 'description' => __( 'Coloured header band, soft cards and a highlighted total.', 'invoice-payment' ), ), 'classic' => array( 'label' => __( 'Classic', 'invoice-payment' ), 'description' => __( 'A formal business layout with ruled tables and a serif heading.', 'invoice-payment' ), ), 'minimal' => array( 'label' => __( 'Mini... ); -
/** * Fires after the template cards on the Templates tab. */ do_action( 'ipay_templates_after_cards' ); -
/** * Fires for a tool the free plugin does not know. */ do_action( "ipay_tool_{$tool}" ); -
/** * Fires at the end of the Tools tab. */ do_action( 'ipay_tools_after' ); -
/** * Filters the tracking number printed on shipping documents. */ apply_filters( 'ipay_tracking_number', $number, $order ); -
/** * Fires after the built-in generator has built a UBL invoice, before it is * serialised. */ do_action( 'ipay_ubl_document', $dom, $order, $document ); -
/** * Filters the order meta keys searched for the customer's VAT number. */ apply_filters( 'ipay_vat_number_meta_keys', array( '_ipay_vat_number', '_billing_vat_number', '_billing_vat', '_billing_eu_vat_number', '_vat_number', 'vat_number', '_billing_vat_id', 'VAT Number', '_wc_other/ipay/vat-number' ) ); -
/** * Filters the ZATCA QR code payload of an invoice. */ apply_filters( 'ipay_zatca_payload', $payload, $order, $document ); -
apply_filters( 'invoice_payment_cart_needs_shipping', $needs_shipping ); -
apply_filters( 'ipay_invoice_payment_icon', '' ); -
apply_filters( 'woocommerce_cart_needs_shipping', $needs_shipping );
Generated from Invoice Payment'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: