Theme actions

Actions are an easy way to execute functions within the theme.

For example, this will execute your cool function into the invoice sidebar.

function my_cool_function() {
    // Do stuff here
}
add_action( 'invoice_sidebar', 'my_cool_function' );

Available hooks

When creating your plugin (sample plugin here) there are several action hooks you can target. Here’s a complete list of target-able hooks for Invoice Rocket (accurate as of December 2017).

Note: All Invoice Rocket actions are prefixed with ir_ and it is recommended you follow this convention when creating your own plugin.

Insert additional items at the start of the main nav
ir_nav_items_start

Insert additional items at the end of the main nav
ir_nav_items_end

Insert additional main nav items between ‘Invoices’ and ‘Clients’
ir_nav_items

Insert additional main nav items between ‘Clients’ and ‘Report’
ir_more_nav_items

Insert additional ‘New’ nav items
ir_more_new_items

Insert additional ‘Invoice Extras’ items (preview mode)
ir_invoice_actions_preview

Insert additional ‘Invoice Extras’ items (edit mode)
ir_invoice_actions_edit

Insert additional Dashboard items at the start of the dashboard
ir_dashboard_start

Insert additional Dashboard items at the end of the dashboard
ir_dashboard_end

Insert additional items into the invoice menu
ir_invoice_nav

Insert additional items into the dashboard financial summary
ir_financial_summary_dashboard

Insert additional item at the end of the admin settings tabs (before the maintenance tab)
ir_admin_tab

Insert additional item at the end of the admin settings pages (before the maintenance page)
ir_admin_page

Insert additional item at the start of the report page
ir_report_start

Insert additional item at the end of the report page
ir_report_end

Insert additional item at the start of header icons
ir_header_start

Insert additional item at the end of header icons
ir_header_end

Insert additional item at the start of stats report panel
ir_stats_start

Insert additional item at the end of stats report panel
ir_stats_end

Insert additional item at end of the Presentation options page
ir_options_presentation

Invoice page title (the title of the page)
ir_invoice_page_title

Invoice type title (the type of invoice, be it ‘invoice’ or ‘expense’ for example)
ir_invoice_type_title

Invoice number label
ir_invoice_number_label

Invoice due
ir_invoice_due

The end of the New Invoice form (just before closing form tag)
ir_invoice_form_end

The button label for creating an invoice or estimate
ir_invoice_button_label

The invoice sidebar
ir_invoice_sidebar

Customer preview invoice sidebar
ir_customer_preview_invoice_sidebar

Notification
ir_notification

Plugins list in admin options page
ir_plugins_list

Thanks page
ir_thanks

Payment types (admin)
ir_payment_types

Payment types (customer facing front-end sidebar)
ir_customer_preview_payment_types

Payment options (shown on invoices)
ir_payment_options

After the line items on estimates and invoices
ir_after_line_items

Invoice payment method
ir_invoice_payment_method

After the payment options on the invoice
ir_after_payment_options

After the summary panel
ir_after_summary

Before wp_footer()
ir_footer_before

After wp_footer()
ir_footer_after

❮ Go back to Invoice Rocket FAQ & Guide

Discuss this