Documentation

Core Hooks

Table of Contents
  1. fi/core/currency/currencies
  2. fi/core/document/date/format
  3. fi/core/document/date/issue/format
  4. fi/core/document/date/paid/format
  5. fi/core/document/date/payment/format
  6. fi/core/document/date/sale/format
  7. fi/core/duplicates
  8. fi/core/email/after/send
  9. fi/core/email/before/send
  10. fi/core/email/note
  11. fi/core/email/note/data
  12. fi/core/find/products/posts_per_page
  13. fi/core/initialized
  14. fi/core/is_invoice_ask
  15. fi/core/is_zero_invoice_ask
  16. fi/core/layout/metabox/client/after
  17. fi/core/layout/metabox/client/before
  18. fi/core/layout/metabox/options/after
  19. fi/core/layout/metabox/options/before
  20. fi/core/layout/metabox/payment/after
  21. fi/core/layout/metabox/payment/before
  22. fi/core/lists/columns/body
  23. fi/core/lists/columns/header
  24. fi/core/numbering/formatted_number
  25. fi/core/pdf/config
  26. fi/core/pdf/generate/before
  27. fi/core/register_post_type/can_export
  28. fi/core/register_post_type/has_archive
  29. fi/core/settings/general/signature_users
  30. fi/core/settings/ready
  31. fi/core/settings/tabs
  32. fi/core/settings/tabs/invoice_template/fields
  33. fi/core/settings/tabs/saved
  34. fi/core/template/correction/after_notes
  35. fi/core/template/correction/head
  36. fi/core/template/invoice/after_notes
  37. fi/core/template/invoice/client/street
  38. fi/core/template/invoice/custom_css
  39. fi/core/template/invoice/exchange/vertical
  40. fi/core/template/payment/label
  41. fi/core/template/report/head
  42. flexible_invoices_after_notes
  43. flexible_invoices_after_notes
  44. woocommerce_currency_symbol
  45. woocommerce_email_after_order_table
  46. woocommerce_email_footer
  47. woocommerce_email_header
  48. woocommerce_email_order_meta
  49. woocommerce_european_union_countries
  50. wpml_switch_language
  51. wpml_translate_single_string

fi/core/currency/currencies#

fi/core/document/date/format#

fi/core/document/date/issue/format#

fi/core/document/date/paid/format#

fi/core/document/date/payment/format#

fi/core/document/date/sale/format#

fi/core/duplicates#

Fires when duplicates exist.

Hook available since version: 3.0.0

fi/core/email/after/send#

Fire hook after email send.
Parameters:

  • \Document $document

fi/core/email/before/send#

Fire hook before email send.
Parameters:

  • \Document $document
  • \PDF $pdf

fi/core/email/note#

Action hook fired after an order note is added.
Parameters:

  • int $order_note_id Order note ID.
  • \WC_Order $order Order data.

Hook available since version: 1.0.0

fi/core/email/note/data#

fi/core/find/products/posts_per_page#

fi/core/initialized#

Hook for integrate with external plugins.
Parameters:

  • \Integration\ExternalPluginsAccess $external_plugin_access External plugin access.

Hook available since version: 3.0.0

fi/core/is_invoice_ask#

fi/core/is_zero_invoice_ask#

fi/core/layout/metabox/client/after#

Fires after client meta box is rendered.
Parameters:

  • \Document $invoice Document type.
  • array $params Array of params.

Hook available since version: 3.0.0

fi/core/layout/metabox/client/before#

Fires before client meta box is rendered.
Parameters:

  • \Document $invoice Document type.
  • array $params Array of params.

Hook available since version: 3.0.0

fi/core/layout/metabox/options/after#

Fires after options meta box is rendered.
Parameters:

  • \Document $document Document type.
  • array $params Array of params.

Hook available since version: 3.0.0

fi/core/layout/metabox/options/before#

Fires before options meta box is rendered.
Parameters:

  • \Document $document Document type.
  • array $params Array of params.

Hook available since version: 3.0.0

fi/core/layout/metabox/payment/after#

Fires after payment meta box is rendered.
Parameters:

  • \Document $document Document type.
  • array $params Array of params.

Hook available since version: 3.0.0

fi/core/layout/metabox/payment/before#

Fires before payment meta box is rendered.
Parameters:

  • \Document $document Document type.
  • array $params Array of params.

Hook available since version: 3.0.0

fi/core/lists/columns/body#

Adds body for custom columns to the documents list.
Parameters:

  • array $column_name Column name.
  • \Document $document Document.

Hook available since version: 3.0.0

fi/core/lists/columns/header#

fi/core/numbering/formatted_number#

fi/core/pdf/config#

fi/core/pdf/generate/before#

fi/core/register_post_type/can_export#

fi/core/register_post_type/has_archive#

fi/core/settings/general/signature_users#

fi/core/settings/ready#

Fires after saving the settings.

fi/core/settings/tabs#

fi/core/settings/tabs/invoice_template/fields#

fi/core/settings/tabs/saved#

Fires after saving the tab settings.
Parameters:

  • string $tab Tab ID.
  • \PersistentContainer $data_container Persistent Container Object.

fi/core/template/correction/after_notes#

Fire hook after correction notes.
Parameters:

  • \Document $document Document object.
  • string $client_country Client country.
  • bool $hide_vat Hide vat?.
  • bool $hide_vat_number Hide vat number?.

Hook available since version: 3.0.0

fi/core/template/correction/head#

Fires in the header section of the correction template.

fi/core/template/invoice/after_notes#

Fire hook after invoice notes.
Parameters:

  • \Document $document Document object.
  • string $client_country Client country.
  • bool $hide_vat Hide vat?.
  • bool $hide_vat_number Hide vat number?.

Hook available since version: 3.0.0

fi/core/template/invoice/client/street#

fi/core/template/invoice/custom_css#

Fires in custom CSS section.
Parameters:

  • \PersistentContainer $settings Settings.

fi/core/template/invoice/exchange/vertical#

fi/core/template/payment/label#

fi/core/template/report/head#

Fires in the header section of the report template.

flexible_invoices_after_notes#

Fire hook after correction notes (deprecated - use fi/core/template/correction/after_notes).
Parameters:

  • string $client_country Client country.
  • bool $hide_vat Hide vat?.
  • bool $hide_vat_number Hide vat number?.
  • \Document $document Document object.

Hook available since version: 3.0.0
This hook is deprecated

flexible_invoices_after_notes#

Fire hook after invoice notes (deprecated - use fi/core/template/invoice/after_notes).
Parameters:

  • string $client_country Client country.
  • bool $hide_vat Hide vat?.
  • bool $hide_vat_number Hide vat number?.
  • \Document $document Document object.

Hook available since version: 3.0.0
This hook is deprecated

woocommerce_currency_symbol#

woocommerce_email_after_order_table#

Fires in email template.
Parameters:

  • \WC_Order $order Order.
  • bool $sent_to_admin Sent to admin.
  • string $plain_text Plain text.
  • string $email Recipient email.

Fires in footer section of email template.

woocommerce_email_header#

Fires in email template.
Parameters:

  • string $email_heading Email heading.
  • string $email Recipient email.

woocommerce_email_order_meta#

Fires in email template.
Parameters:

  • \WC_Order $order Order.
  • bool $sent_to_admin Sent to admin.
  • string $plain_text Plain text.
  • string $email Recipient email.

woocommerce_european_union_countries#

wpml_switch_language#

WPML language switch.
Parameters:

  • string $wpml_user_lang Current lang.

wpml_translate_single_string#

Not the solution you are looking for?

Please check other articles or open a support ticket.

Cookies preferences

Others

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Necessary

Necessary
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

Advertisement

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

Analytics

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.

Functional

Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.

Performance

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.