Core Hooks

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/edit/metabox/publish

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/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 $invoice 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 $invoice 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/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/saved

Fires after saving the tab settings.

Parameters:

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

fi/core/settings/tabs/template/fields

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/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:

inspire_invoices_client_data

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.

woocommerce_email_footer

Fires in footer section of email template.

woocommerce_email_header

Fires in email template.

Parameters:

  • bool $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

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us