Flexible PDF Invoices for WooCommerce & WordPress 7.1.3 has 47 actions and 87 filters, read directly from its source code on Nov 17, 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 Flexible PDF Invoices for WooCommerce & WordPress fires an action
add_action( 'woocommerce_email_footer', function( $email ) {
// Your code runs here.
}, 10, 1 );
// Change a value Flexible PDF Invoices for WooCommerce & WordPress is about to use
add_filter( 'fi/core/settings/settings_template_resolvers', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
/** * Fire hook after email send. */ do_action( 'fi/core/email/after/send', $document ); -
/** * Fire hook before email send. */ do_action( 'fi/core/email/before/send', $document, $pdf ); -
/** * Fires after saving the settings. */ do_action( 'fi/core/settings/ready' ); -
/** * Filters resolvers for setting templates. */ apply_filters( 'fi/core/settings/settings_template_resolvers', [new DirResolver($this->template_dir . 'settings'), new DefaultFormFieldResolver()] ); -
/** * Filters setting tabs. */ apply_filters( 'fi/core/settings/tabs', $tabs ); -
/** * Fire hook after invoice notes. */ do_action( 'fi/core/template/invoice/after_notes', $document, $client_country, $hide_vat, $hide_vat_number ); -
/** * Fire hook after correction notes (deprecated - use * fi/core/template/correction/after_notes). */ do_action( 'flexible_invoices_after_notes', $client_country, $hide_vat, $hide_vat_number, $document ); -
/** * Filters vat types. */ apply_filters( 'inspire_invoices_vat_types', $tax_rates ); -
/** * Filters currencies. */ apply_filters( 'fi/core/currency/currencies', $currencies ); -
/** * Filters currency symbols. */ apply_filters( 'fi/core/currency/symbols', ['AED' => 'د.إ', 'AFN' => '؋', 'ALL' => 'L', 'AMD' => 'AMD', 'ANG' => 'ƒ', 'AOA' => 'Kz', 'ARS' => '$', 'AUD' => '$', 'AWG' => 'Afl.', 'AZN' => 'AZN', 'BAM' => 'KM', 'BBD' => '$', 'BDT' => '৳ ', 'BGN' => 'лв.', 'BHD' => '.د.ب', 'BIF' => 'Fr', 'BMD' => '$', 'BND' => '$', 'BOB' => 'Bs.', 'BRL' => 'R$', 'BSD' => ... ); -
/** * General document date format. */ apply_filters( 'fi/core/document/date/format', $format ); -
/** * Date format for issue date. */ apply_filters( 'fi/core/document/date/issue/format', $format ); -
/** * Date format for the date paid. */ apply_filters( 'fi/core/document/date/paid/format', $format ); -
/** * Date format for payment date. */ apply_filters( 'fi/core/document/date/payment/format', $format ); -
/** * Date format for the sale date. */ apply_filters( 'fi/core/document/date/sale/format', $format ); -
/** * Fires after document save. */ do_action( 'fi/core/document/save', $document, $meta, $document_id ); -
/** * Action hook fired after an order note is added. */ do_action( 'fi/core/email/note', $comment_id, $order ); -
/** * Filters comment data before insert. */ apply_filters( 'fi/core/email/note/data', ['comment_post_ID' => $order->get_id(), 'comment_author' => $comment_author, 'comment_author_email' => $comment_author_email, 'comment_author_url' => '', 'comment_content' => $note, 'comment_agent' => 'WooCommerce', 'comment_type' => 'order_note', 'comment_parent' => 0, 'comment_approved' => 1], ['order_id' => $order->get_id(), 'is_fi_note' => 1] ); -
/** * Hook for integrate with external plugins. */ do_action( 'fi/core/initialized', $external_plugin_access ); -
/** * The conditional logic for checking if the user wants to receive an invoice. */ apply_filters( 'fi/core/is_invoice_ask', $is_invoice_ask, $creator, $settings ); -
/** * Conditional logic for checking whether to issue zero invoices. */ apply_filters( 'fi/core/is_zero_invoice_ask', $is_zero_invoice_ask, $creator, $settings ); -
/** * Fires after client meta box is rendered. */ do_action( 'fi/core/layout/metabox/client/after', $invoice, $params ); -
/** * Fires before client meta box is rendered. */ do_action( 'fi/core/layout/metabox/client/before', $invoice, $params ); -
/** * Fires after options meta box is rendered. */ do_action( 'fi/core/layout/metabox/options/after', $document, $params ); -
/** * Fires before options meta box is rendered. */ do_action( 'fi/core/layout/metabox/options/before', $document, $params ); -
/** * Fires after payment meta box is rendered. */ do_action( 'fi/core/layout/metabox/payment/after', $document, $params ); -
/** * Fires before payment meta box is rendered. */ do_action( 'fi/core/layout/metabox/payment/before', $document, $params ); -
/** * Adds body for custom columns to the documents list. */ do_action( 'fi/core/lists/columns/body', $column_name, $document ); -
/** * Filters the numbering for the document. */ apply_filters( 'fi/core/numbering/formatted_number', $number_array, $this->document ); -
/** * Filters order item. */ apply_filters( 'fi/core/order/data/product', $item->get(), $this->order ); -
/** * Filters the settings for the MPDF library. */ apply_filters( 'fi/core/pdf/config', $config_data, $config ); -
/** * Filters fonts data. */ apply_filters( 'fi/core/pdf/fonts/data', $fonts, $default_font_data, $fonts_data ); -
/** * Filters font paths. */ apply_filters( 'fi/core/pdf/fonts/dir', [trailingslashit($this->library_info->get_assets_dir() . 'fonts')] ); -
/** * Filters the can_export arg for the register_post_type function. */ apply_filters( 'fi/core/register_post_type/can_export', \false ); -
/** * Filters the has_archive arg for the register_post_type function. */ apply_filters( 'fi/core/register_post_type/has_archive', \false ); -
/** * Filters the default signature users passed to select in general settings. */ apply_filters( 'fi/core/settings/general/signature_users', $users, $site_users ); -
/** * Definitions of settings for Documents tab. */ apply_filters( 'fi/core/settings/tabs/documents', $documents_settings ); -
/** * Filters invoice template settings fields. */ apply_filters( 'fi/core/settings/tabs/invoice_template/fields', $fields, $beacon ); -
/** * Fires after saving the tab settings. */ do_action( 'fi/core/settings/tabs/saved', $tab, $data_container ); -
/** * Definitions of settings for WooCommerce tab. */ apply_filters( 'fi/core/settings/tabs/woocommerce', $woocommerce_tabs ); -
/** * Fire hook after correction notes. */ do_action( 'fi/core/template/correction/after_notes', $document, $client_country, $hide_vat, $hide_vat_number ); -
/** * Fires in the header section of the correction template. */ do_action( 'fi/core/template/correction/head' ); -
/** * Filters client street. */ apply_filters( 'fi/core/template/invoice/client/street', $output_street, $customer ); -
/** * Fires in custom CSS section. */ do_action( 'fi/core/template/invoice/custom_css', $settings ); -
/** * Fires in the header section of the report template. */ do_action( 'fi/core/template/report/head' ); -
/** * Filter for show meta data keys & values after title. */ apply_filters( 'fi/core/woocommerce/document/item/show_meta', $show_meta ); -
/** * Filter for skipping an item passed from a WooCommerce order. */ apply_filters( 'fi/core/woocommerce/document/item/skip', \false, $item ); -
/** * Filter item title. */ apply_filters( 'fi/core/woocommerce/document/item/title', $order_item->get_name(), $order_item ); -
/** * Filters total section. */ apply_filters( 'flexible_invoices_total', $total_section, $correction, $products, $client ); -
/** * Filters payment statuses. */ apply_filters( 'inspire_invoices_payment_statuses', ['topay' => esc_html__('Due', 'flexible-invoices'), 'paid' => esc_html__('Paid', 'flexible-invoices')] ); -
/** * Fires in email template. */ do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ); -
/** * Fires in email template. */ do_action( 'woocommerce_email_header', $email_heading, $email ); -
/** * Fires in email template. */ do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); -
/** * WPML language switch. */ do_action( 'wpml_switch_language', $wpml_user_lang ); -
apply_filters( 'wpdesk_tracker_do_not_ask', false ); -
apply_filters( 'wpdesk_tracker_enabled', $tracker_enabled ); -
apply_filters( 'fi/core/find/products/posts_per_page', 100 ); -
woocommerce_adjust_non_base_location_prices
filter Used by 50 plugins β Copy link Customise this hookapply_filters( 'woocommerce_adjust_non_base_location_prices', \true ); -
apply_filters( 'wpdesk_track_plugin_deactivation', $plugins ); -
apply_filters( 'wpdesk_tracker_admin_email', \get_option('admin_email') ); -
apply_filters( 'wpdesk_tracker_use_testdata', \false ); -
apply_filters( 'active_plugins', get_option('active_plugins') ); -
apply_filters( 'fi/core/automation/cancel_document_issuing', \false, $order ); -
apply_filters( 'fi/core/blocks/allowed_block_types', $fi_blocks ); -
apply_filters( 'fi/core/blocks/block_list', ['company', 'customer', 'dates', 'logo', 'notes', 'number', 'order-number', 'payment', 'payment-link', 'payment-status', 'price-summary', 'recipient', 'row', 'signature', 'table-products', 'table-summary', 'text', 'wrapper'] ); -
apply_filters( 'fi/core/blocks/invoice_template', $this->template_id, $this ); -
apply_filters( 'fi/core/blocks/replacers', ['customer' => new CustomerReplacer(), 'payment-link' => new PaymentLinkReplacer(), 'recipient' => (new RecipientReplacer())->set_block_template($block_template), 'company' => (new CompanyReplacer())->set_block_template($block_template), 'dates' => new DatesReplacer(), 'number' => new DocumentNumberReplacer(), 'notes' => new NotesReplacer(), 'order-number' => new OrderNumberReplacer(), 'price-s... ); -
do_action( 'fi/core/duplicates', \true ); -
apply_filters( 'fi/core/invoice_edit/products_metabox/show_type_column', \false ); -
apply_filters( 'fi/core/ksef/tabs', $tabs ); -
do_action( 'fi/core/layout/metabox/client/display/after', $invoice, $params ); -
do_action( 'fi/core/layout/metabox/client/display/before', $invoice, $params ); -
do_action( 'fi/core/layout/metabox/owner/after', $invoice, $params ); -
do_action( 'fi/core/layout/metabox/owner/before', $invoice, $params ); -
do_action( 'fi/core/layout/metabox/owner/display/after', $invoice, $params ); -
do_action( 'fi/core/layout/metabox/owner/display/before', $invoice, $params ); -
do_action( 'fi/core/layout/metabox/recipient/after', $invoice, $params ); -
do_action( 'fi/core/layout/metabox/recipient/before', $invoice, $params ); -
do_action( 'fi/core/layout/metabox/recipient/display/after', $invoice, $params ); -
do_action( 'fi/core/layout/metabox/recipient/display/before', $invoice, $params ); -
apply_filters( 'fi/core/lists/columns/header', $columns ); -
apply_filters( 'fi/core/numbering/duplicate_guard_max_attemps', 5 ); -
apply_filters( 'fi/core/numbering/enable_duplicate_guard', \false ); -
apply_filters( "fi/core/order/generate/document/skip/{$creator->get_type()}", \false, $creator, $order ); -
do_action( 'fi/core/pdf/generate/before', $document, $this->settings, $document_name ); -
do_action( 'fi/core/register/metabox', $invoice, $this->renderer, $this->settings ); -
apply_filters( 'fi/core/reports/tabs', $tabs ); -
apply_filters( 'fi/core/settings/currencies/locales', $locale ); -
do_action( 'fi/core/settings/tabs/save_init', $tab, $data_container ); -
do_action( 'fi/core/settings/tabs/saving', $tab, $data_container ); -
apply_filters( 'fi/core/settings/woocommerce/general/exchange_currencies', $currencies ); -
apply_filters( 'fi/core/template/invoice/exchange/vertical', $default, $document, $products, $customer ); -
apply_filters( 'fi/core/template/payment/label', esc_html__('Pay for this order', 'flexible-invoices') ); -
do_action( 'fi/core/template/proforma/after_notes', $invoice ); -
apply_filters( 'helpscout-beacon/should-display-beacon', $this->activation_strategy->shouldDisplay() ); -
apply_filters( 'the_content', get_post_field('post_content', $this->template_id) ); -
apply_filters( 'woocommerce_currency_symbol', $symbol, $currency_option['currency'] ); -
apply_filters( 'woocommerce_european_union_countries', $countries, $type ); -
woocommerce_settings_api_sanitized_fields_{$this->settings->id}
filter Copy link Customise this hookapply_filters( "woocommerce_settings_api_sanitized_fields_{$this->settings->id}", $this->settings->settings ); -
woocommerce_shipping_{$this->method->id}_instance_settings_values
filter Copy link Customise this hookapply_filters( "woocommerce_shipping_{$this->method->id}_instance_settings_values", $this->method->instance_settings, $this->method ); -
woocommerce_template_overrides_scan_paths
filter Used by 37 plugins β Copy link Customise this hookapply_filters( 'woocommerce_template_overrides_scan_paths', ['WooCommerce' => \WC()->plugin_path() . '/templates/'] ); -
do_action( 'wp_builder_before_init', $plugin ); -
do_action( 'wp_builder_before_plugin_init', $plugin ); -
apply_filters( 'wp_builder_plugin_class', $plugin_info->get_class_name() ); -
apply_filters( 'wpdesk_can_register_plugin', \true, $this->plugin_info ); -
apply_filters( 'wpdesk_can_start_tracker', \true, $this->plugin_info ); -
apply_filters( 'wpdesk_is_wp_log_capture_permitted', \true ); -
do_action( 'wpdesk_notice_dismissed_notice', $noticeName, $source ); -
apply_filters( 'wpdesk_tracker_data', $data ); -
apply_filters( 'wpdesk_tracker_deactivation_data', $params ); -
do_action( 'wpdesk_tracker_initialized', $this ); -
apply_filters( 'wpdesk_tracker_instance', $this->tracker ); -
apply_filters( 'wpdesk_tracker_last_send_interval', \strtotime('-1 week') ); -
apply_filters( 'wpdesk_tracker_last_send_time', $last_send ); -
apply_filters_ref_array( 'wpdesk_tracker_notice_content', [\false, $username, $terms_url] ); -
apply_filters( 'wpdesk_tracker_notice_screens', [] ); -
apply_filters( 'wpdesk_tracker_send_override', $override ); -
apply_filters( 'wpdesk_tracker_show_testdata', \false ); -
do_action( 'wpdesk_tracker_started', $tracker, $this->plugin_info ); -
apply_filters( 'wpdesk/ltvdashboard/disable', \false ); -
apply_filters( "wpdesk/tracker/bucket/{$bucket}", null ); -
apply_filters( "wpdesk/tracker/bucket/{$this->plugin_slug}", $bucket ); -
apply_filters_ref_array( 'wpdesk/tracker/logo_file', [$logo_file, $this->shop] ); -
apply_filters_ref_array( 'wpdesk/tracker/logo_url', [$logo_url, $this->plugin_slug] ); -
do_action( 'wpdesk/tracker/plugin_started', $this->tracker, $this->plugin_basename, $this->plugin_slug, $this->get_bucket() ); -
apply_filters( "wpdesk/tracker/sender/{$this->basename}", $default_sender ); -
apply_filters( "wpdesk/tracker/sender/{$this->get_slug()}", $default_sender ); -
apply_filters_ref_array( 'wpdesk/tracker/shop_name', [$this->shops_usage_tracking_names[$this->shop] ?? $this->default_shop_name, $this->shop] ); -
apply_filters_ref_array( 'wpdesk/tracker/usage_tracking_page', [$usage_tracking_page, $this->shop] ); -
apply_filters( 'wpml_current_language', 'en' ); -
apply_filters( 'wpml_translate_single_string', $value, $textdomain, $id, $current_lang );
Generated from Flexible PDF Invoices for WooCommerce & WordPress'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: