Smart Woo Service Invoicing 2.5.5 has 58 actions and 119 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 Smart Woo Service Invoicing fires an action
add_action( 'smartwoo_service_renewal_failed', function( $arg1, $service ) {
// Your code runs here.
}, 10, 2 );
// Change a value Smart Woo Service Invoicing is about to use
add_filter( 'smartwoo_additional_client_details', function( $value, $arg2 ) {
// 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
-
/** * Fires when service renewal fails */ do_action( 'smartwoo_service_renewal_failed', 'Service subscription does not exists.', $service ); -
/** * Fires when the status of a subscription becomes active */ do_action( 'smartwoo_service_activated', $service ); -
/** * Additional Client details. */ apply_filters( 'smartwoo_additional_client_details', array(), $client->get_id() ); -
/** * Filters admin REST API handler to allow plugins handle additional filter * params. */ apply_filters( 'smartwoo_admin_rest_handler', null, $request, __CLASS__ ); -
/** * Add a callback function that prepares response data for a given admin * dashboard section. */ apply_filters( "smartwoo_AdminDashboard_prepare_{$section}_data", null, $results, __CLASS__ ); -
/** * Filters the dashboard REST API pagination callback to get total count for a * given request filter. */ apply_filters( 'smartwoo_AdminDashboard_response_pagination_total', $callback, $filter, $request ); -
/** * Fires when an auto renewal invoice is created. */ do_action( 'smartwoo_auto_invoice_created', $invoice, $service ); -
/** * Fires when an auto renewal invoice creation fails */ do_action( 'smartwoo_auto_invoice_failed', $service, 'Invoice creation failed: database insertion error.' ); -
/** * Fires before an expired service is reactivated. */ do_action( 'smartwoo_before_activate_expired_service', $expired_service ); -
/** * Add Action Hook Before Updating Service Information. */ do_action( 'smartwoo_before_service_renew', $service ); -
/** * Client billing details */ apply_filters( 'smartwoo_client_billing_info_display', array( 'Company' => $client->get_billing_company(), 'Email Adrress' => $client->get_email(), 'Billing Email' => $billing_email, 'Phone Number' => $client->get_billing_phone(), 'Street Address' => $street_address, 'City' => $client->get_billing_city(), 'Postal / Zip' => $client->get_billing_postcode() ? $client->get_billing_postcode() : 'N/A', 'State / Region' => smartwoo_get_state_name( $client... ); -
/** * Filters the account log data displayed to the client. */ apply_filters( 'smartwoo_client_log', $log_data ); -
/** * Filter the invoice total to be displayed. */ apply_filters( 'smartwoo_display_invoice_total', $total, $this ); -
/** * Filter to add more options to the dropdown, does not modify the existing * options. */ apply_filters( 'smartwoo_dropdown_users_add', '' ); -
/** * Fires after an expired service is renewed. */ do_action( 'smartwoo_expired_service_activated', $expired_service ); -
/** * Fires when an invoice is deleted */ do_action( 'smartwoo_invoice_deleted', $existing_invoice ); -
/** * Fires when existing service has a paid invoice which is not handled here. */ do_action( 'smartwoo_invoice_for_existing_service_paid', $service_id, $invoice_id, $invoice_type ); -
/** * Fires after an invoice is marked as paid. */ do_action( 'smartwoo_invoice_is_paid', $updated_invoice ); -
/** * Filters the items added to the invoice. */ apply_filters( 'smartwoo_invoice_items_display', $items, $this ); -
/** * Filters the items added to the invoice editor. */ apply_filters( 'smartwoo_invoice_items_edit', $items, $this ); -
/** * Fires for an unpaid invoice. */ do_action( 'smartwoo_invoice_payment_reminder', $invoice ); -
/** * Filters the initial value of invoice totals before adding the core items in * th calculation. */ apply_filters( 'smartwoo_invoice_pre_total', (float) 0, $this ); -
/** * Fires when invoice status changes. */ do_action( 'smartwoo_invoice_status_transition', $invoice, $old_status, $args['payment_status'] ); -
/** * Fires when the client generates a renewal invoice from the portal. */ do_action( 'smartwoo_manual_invoice_created', $invoice, $service ); -
/** * Add additional service information to the container */ apply_filters( 'smartwoo_more_service_details', array(), $service ); -
/** * Fires after we create new invoice orders. */ do_action( 'smartwoo_new_invoice_order', $order ); -
/** * Fires after a new service order has been processed. */ do_action( 'smartwoo_new_service_is_processed', $service->get_service_id() ); -
/** * Fires when a new service purchase is complete. */ do_action( 'smartwoo_new_service_purchase_complete', $smartwoo_orders ); -
/** * Other Products URL */ apply_filters( 'smartwoo_other_products', 'https://apps.callismart.com.ng/' ); -
/** * Prempt a REST API handler for the admin dashboard. */ apply_filters( 'smartwoo_pre_admin_rest_handler', null, $request, __CLASS__ ); -
/** * Prempt invoice items to be added to the editor, returning a not empty value * will short circuit the items displayed in the editor */ apply_filters( 'smartwoo_prempt_invoice_items_edit', array(), $this ); -
/** * Filter the SmartWoo REST API routes. */ apply_filters( 'smartwoo_rest_routes', $routes ); -
/** * Add more buttons to the row */ apply_filters( 'smartwoo_service_details_button_row', array(), $service ); -
/** * Fires when a service subscription is renewed. */ do_action( 'smartwoo_service_renewed', $service ); -
/** * Our github repository */ apply_filters( 'smartwoo_source_code', 'https://github.com/CallismartLtd/smart-woo-service-invoicing/' ); -
/** * Plugin support link. */ apply_filters( 'smartwoo_support_url', 'https://support.callismart.com.ng/' ); -
/** * Smart Woo Pro URL */ apply_filters( 'smartwoopro_purchase_link', smartwoo_get_callismart_tech_url( 'smart-woo-service-invoicing/' ) ); -
do_action( 'smartwoo_invoice_editor_after_subtotal' ); -
apply_filters( 'smartwoo_admin_billing_email', get_option( 'smartwoo_billing_email' ) ); -
apply_filters( 'smartwoo_dash_pro_button_text', __( 'Activate Pro Features', 'smart-woo-service-invoicing' ) ); -
do_action( 'smartwoo_admin_header' ); -
apply_filters( 'smartwoo_callismart_tech_url', $base ); -
apply_filters( 'smartwoo_dashboard_name', 'Smart Woo' ); -
apply_filters( 'smartwoo_dashboard_version', SMARTWOO_VER ); -
do_action( 'smartwoo_invoice_editor_item_selector' ); -
apply_filters( 'smartwoo_invoice_form_error', self::instance()->check_errors() ); -
apply_filters( 'smartwoo_invoice_pages', array() ); -
apply_filters( 'smartwoo_login_button_text', __( 'login', 'smart-woo-service-invoicing' ) ); -
apply_filters( 'smartwoo_pro_purchase_page', smartwoo_get_callismart_tech_url( 'smart-woo-service-invoicing/#go-pro' ) ); -
apply_filters( 'smartwoo_product_data_tabs', array() ); -
do_action( 'smartwoo_service_deactivated', $service ); -
apply_filters( 'smartwoo_subscription_pages', array() ); -
apply_filters( 'cart_is_configured', false ); -
apply_filters( 'document_title_separator', '-' ); -
do_action( "smartwoo_{$action}", $selected_action, explode( ',', $payload ) ); -
do_action( "smartwoo_{$template}_preview" ); -
apply_filters( 'smartwoo_active_service_statuses', array( 'Active', 'Active (NR)', 'Due for Renewal', 'Due', 'Grace Period' ) ); -
apply_filters( 'smartwoo_add_to_cart_text', $text, $this ); -
apply_filters( 'smartwoo_admin_service_expiration_mail_template', $message, $this ); -
do_action( 'smartwoo_admin_view_service_after_invoices_section', $service ); -
do_action( 'smartwoo_admin_view_service_before_invoices_section', $service ); -
do_action( 'smartwoo_admin_view_service_before_service_details_section', $service ); -
do_action( 'smartwoo_admin_view_service_button_area', $service ); -
smartwoo_admin_view_service_client_after_client_details_section
action Copy link Customise this hookdo_action( 'smartwoo_admin_view_service_client_after_client_details_section', $service ); -
smartwoo_admin_view_service_client_before_client_details_section
action Copy link Customise this hookdo_action( 'smartwoo_admin_view_service_client_before_client_details_section', $service ); -
apply_filters( 'smartwoo_AdminDashboard_allowed_sections_params', $sections ); -
apply_filters( 'smartwoo_advanced_options', array( 'smartwoo_allow_fast_checkout', 'smartwoo_allow_optout/Cancellation', 'smartwoo_allow_invoice_tracking', 'smartwoo_remove_plugin_data_during_uninstall' ) ); -
do_action( 'smartwoo_after_email_options' ); -
do_action( 'smartwoo_after_invoice_options' ); -
do_action( 'smartwoo_after_product_config_container', $product ); -
apply_filters( 'smartwoo_after_service_details_page', '', $service ); -
do_action( 'smartwoo_after_service_options' ); -
apply_filters( 'smartwoo_allowed_dashboard_actions', array( 'sw_search', 'total_services', 'total_pending_services', 'total_active_services', 'total_active_nr_services', 'total_due_services', 'total_on_grace_services', 'total_expired_services', 'total_cancelled_services', 'total_suspended_services', 'all_services_table', 'all_pending_services_table', 'all_active_services_table', 'all_active_nr_services_table', 'all_due_services_table', 'all_on_gr... ); -
apply_filters( 'smartwoo_allowed_form_html', array( 'form' => array( 'action' => true, 'method' => true, 'class' => true, 'id' => true, ), 'input' => array( 'type' => true, 'min' => true, 'max' => true, 'placeholder' => true, 'name' => true, 'value' => true, 'class' => true, 'id' => true, 'autocomplete' => true, ), 'select' => array( 'name' => true, 'id' => true, 'class' => true, 'required' => true, 'readonly' => true, 'field-name' => tru... ); -
apply_filters( 'smartwoo_allowed_table_actions', array() ); -
do_action( 'smartwoo_before_email_options' ); -
do_action( 'smartwoo_before_invoice_options' ); -
do_action( 'smartwoo_before_product_config_container', $product ); -
do_action( 'smartwoo_before_service_details_page', $service ); -
do_action( 'smartwoo_before_service_options' ); -
do_action( 'smartwoo_before_update_invoice', $invoice->get_invoice_id() ); -
apply_filters( 'smartwoo_blocks', $block_folders ); -
apply_filters( 'smartwoo_cancellation_mail_to_user_template', $message, $self ); -
apply_filters( 'smartwoo_cancelled_service_mail', true ); -
apply_filters( 'smartwoo_cart_item_header', 'Subscription Items' ); -
apply_filters( 'smartwoo_client_portal_pages', array_merge( $invoice_page_handlers, $service_page_handlers ) ); -
do_action( 'smartwoo_client_services_and_invoices', $client->get_id() ); -
apply_filters( 'smartwoo_dropdown_user_meta', '<div class="sw-invoice-form-meta"> <input type="hidden" name="is_guest_invoice" value="no"/> <input type="hidden" name="first_name" /> <input type="hidden" name="last_name" /> <input type="hidden" name="billing_email" /> <input type="hidden" name="billing_company" /> <input type="hidden" name="billing_address" /> <input type="hidden" name="billing_phone" /> </div>' ); -
apply_filters( 'smartwoo_email_body', '<body style="margin: 0 auto; padding: 0; background-color: #f9f9f9; width: 100%; max-width: 768px;"> ' . self::print_styles() . ' <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="80%" style="background-color: #f9f9f9; margin: 0 auto; padding: 0; border-collapse: collapse; width: 90%;"> <tr> <td align="center" style="padding: 5px 0; background-color: #f1f1f1; border:... ); -
apply_filters( 'smartwoo_email_options', $defaults ); -
apply_filters( 'smartwoo_email_style_dir', '' ); -
apply_filters( 'smartwoo_email_template_header', '<!DOCTYPE html> <html lang="' . esc_attr( $lang_attr ) . '"> <head> <meta charset="' . esc_attr( $charset ) . '"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="x-apple-disable-message-reformatting"> <title>' . esc_html( $this->subject ) . '</title>' . apply_filters( 'smartwoo_maybe_add_script', '' ) . ' <!--[if mso]> <noscript> <xml> <o:OfficeDocumentSettings... ); -
apply_filters( 'smartwoo_generate_invoice_id', $invoice_id ); -
apply_filters( 'smartwoo_guest_invoice_access', true, $this ); -
do_action( 'smartwoo_handling_edit_invoice_form_success', $updated ); -
do_action( 'smartwoo_handling_new_invoice_form_success', $invoice ); -
do_action( 'smartwoo_init' ); -
apply_filters( 'smartwoo_interprete_service_status', $status ); -
do_action( 'smartwoo_invoice_content', $invoice ); -
apply_filters( 'smartwoo_invoice_discount_total', 0, $this ); -
apply_filters( 'smartwoo_invoice_email_attachments', [], $this->invoice ); -
apply_filters( 'smartwoo_invoice_email_placeholders', self::$placeholders ); -
apply_filters( 'smartwoo_invoice_email_recipients', $this->invoice->get_billing_email(), $this->invoice ); -
apply_filters( 'smartwoo_invoice_log_template', smartwoo_pro_feature_template() ); -
apply_filters( 'smartwoo_invoice_mail_send', true, $this->invoice ); -
apply_filters( 'smartwoo_invoice_paid_mail', get_option( 'smartwoo_invoice_paid_mail', 0 ) ); -
apply_filters( 'smartwoo_invoice_paid_mail_template', $message, self::$instance ); -
apply_filters( 'smartwoo_invoice_payment_reminder_mail', get_option( 'smartwoo_new_invoice_mail', 0 ) ); -
apply_filters( 'smartwoo_invoice_style_url', SMARTWOO_DIR_URL . 'assets/css/smart-woo-invoice' . $suffix . '.css' ); -
apply_filters( 'smartwoo_invoice_template', $template_path, $invoice ); -
do_action( 'smartwoo_invoice_updated', $invoice ); -
apply_filters( 'smartwoo_is_frontend', true ); -
apply_filters( 'smartwoo_kses_allowed', array( 'div' => array( 'class' => true, 'id' => true, 'style' => true, ), 'p' => array( 'class' => true, ), 'input' => array( 'class' => true, 'type' => true, 'id' => true, 'checked' => true, 'data-option' => true, ), 'label' => array( 'for' => true, 'class' => true, ), 'script' => array( 'type' => true, 'src' => true, ), 'style' => array(), 'ul' => array( 'style' => true, 'class' => true, 'lim... ); -
do_action( 'smartwoo_loaded' ); -
do_action( 'smartwoo_mail_sent', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) ); -
apply_filters( 'smartwoo_maybe_add_script', '' ); -
apply_filters( 'smartwoo_never_expire_value', '' ); -
do_action( 'smartwoo_new_invoice_created', $invoice ); -
apply_filters( 'smartwoo_new_invoice_mail', get_option( 'smartwoo_new_invoice_mail', 0 ) ); -
apply_filters( 'smartwoo_new_invoice_mail_template', $message, self::$instance ); -
do_action( 'smartwoo_new_service_created', $service ); -
apply_filters( 'smartwoo_new_service_order', $mail_is_enabled ); -
apply_filters( 'smartwoo_new_service_order_temp_placeholders', array( '{{order_id}}', '{{order_date}}', '{{payment_method}}', '{{payment_amount}}', '{{transaction_id}}', '{{order_items}}', '{{business_name}}', '{{client_fullname}}', '{{client_billing_email}}', '{{client_billing_address}}' ) ); -
apply_filters( 'smartwoo_new_service_order_template', $message, self::$instance ); -
do_action( "smartwoo_options_{$tab}_content" ); -
apply_filters( 'smartwoo_options_tab', $tabs ); -
apply_filters( 'smartwoo_order_details_buttons', smartwoo_check_if_configured( $order ) || $order->is_created_via( SMARTWOO ) ); -
apply_filters( 'smartwoo_payment_reminder_to_client_template', $message, self::$instance ); -
apply_filters( 'smartwoo_payment_status', array( '' => __( 'Select Payment Status', 'smart-woo-service-invoicing' ), 'paid' => __( 'Paid', 'smart-woo-service-invoicing' ), 'unpaid' => __( 'Unpaid', 'smart-woo-service-invoicing' ), 'due' => __( 'Due', 'smart-woo-service-invoicing' ), 'cancelled' => __( 'Cancel', 'smart-woo-service-invoicing' ), ) ); -
apply_filters( 'smartwoo_plugin_url', smartwoo_get_callismart_tech_url( 'smart-woo-service-invoicing' ) ); -
apply_filters( 'smartwoo_price', $formatted_price, $price, $amount ); -
apply_filters( 'smartwoo_price_args', wp_parse_args( $args, array( 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), ) ) ); -
do_action( 'smartwoo_process_new_order_form_header', $order, $product ); -
apply_filters( 'smartwoo_product_config_template', SMARTWOO_PATH . 'templates/frontend/configure.php' ); -
apply_filters( 'smartwoo_product_form_data', self::instance()->form_fields ); -
apply_filters( 'smartwoo_product_text_on_shop', $pruduct_text ); -
apply_filters( 'smartwoo_query_vars', array( 'buy-new', 'view-subscription', 'status', 'upgrade', 'downgrade', 'view-invoice' ) ); -
apply_filters( 'smartwoo_renewal_mail_template', $message, self::$instance ); -
apply_filters( 'smartwoo_save_product_form', $product ); -
apply_filters( 'smartwoo_send_expiry_mail_to_admin', get_option( 'smartwoo_service_expiration_mail_to_admin', false ) ); -
apply_filters( 'smartwoo_send_mail', true ); -
apply_filters( 'smartwoo_service_allowed_notice_types', array( 'expiry', 'unpaid_invoice', 'due_invoice' ) ); -
apply_filters( 'smartwoo_service_cancellation_mail_to_admin_template', $message, $self ); -
apply_filters( 'smartwoo_service_email_attachments', [], $this->service ); -
apply_filters( 'smartwoo_service_email_placeholders', self::$placeholders ); -
apply_filters( 'smartwoo_service_email_recipients', $this->recipients, $this->service ); -
apply_filters( 'smartwoo_service_expiration_mail', get_option( 'smartwoo_service_expiration_mail' ) ); -
apply_filters( 'smartwoo_service_expiration_mail_template', $message, self::$instance ); -
do_action( 'smartwoo_service_expired', $service ); -
apply_filters( 'smartwoo_service_form_data', $this->form_fields ); -
apply_filters( 'smartwoo_service_mail_placeholder_value', '', $placeholder ); -
apply_filters( 'smartwoo_service_mail_placeholders_description', $data ); -
apply_filters( 'smartwoo_service_mail_send', true, $this->service ); -
apply_filters( 'smartwoo_service_mass_pay_url', $unpaid_invs[0]->pay_url(), $unpaid_invs ); -
apply_filters( 'smartwoo_service_opt_out_mail_template', $message, self::$instance ); -
apply_filters( 'smartwoo_service_optout_mail', get_option( 'smartwoo_service_opt_out_mail', false ) ); -
apply_filters( 'smartwoo_service_processed_mail', get_option( 'smartwoo_service_processed_mail', false ) ); -
apply_filters( 'smartwoo_service_processed_mail_template', $message, self::$instance ); -
apply_filters( 'smartwoo_service_props', $data ); -
apply_filters( 'smartwoo_service_reactivation_mail', get_option( 'smartwoo_renewal_mail', false ) ); -
apply_filters( 'smartwoo_service_url_button_html', $button, $button_text, $service ); -
apply_filters( 'smartwoo_service_url_button_text', $button_text, $service ); -
apply_filters( 'smartwoo_show_product_meta', true, $product ); -
apply_filters( 'smartwoo_supported_billing_cycles', array( 'Weekly' => __( 'Weekly', 'smart-woo-service-invoicing' ), 'Monthly' => __( 'Monthly', 'smart-woo-service-invoicing' ), 'Quarterly' => __( 'Quarterly', 'smart-woo-service-invoicing' ), 'Semiannually' => __( 'Semiannually', 'smart-woo-service-invoicing' ), 'Yearly' => __( 'Yearly', 'smart-woo-service-invoicing' ) ) ); -
apply_filters( 'smartwoo_supported_invoice_types', array( 'New Service Invoice' => __( 'New Service Invoice', 'smart-woo-service-invoicing' ), 'Service Renewal Invoice' => __( 'Service Renewal Invoice', 'smart-woo-service-invoicing' ), ) ); -
apply_filters( 'smartwoo_supported_service_status', array( 'Active' => __( 'Active', 'smart-woo-service-invoicing' ), 'Active (NR)' => __( 'Disable Renewal', 'smart-woo-service-invoicing' ), 'Suspended' => __( 'Suspend Service', 'smart-woo-service-invoicing' ), 'Cancelled' => __( 'Cancel Service', 'smart-woo-service-invoicing' ), 'Due for Renewal' => __( 'Due for Renewal', 'smart-woo-service-invoicing' ), 'Expired' => __( 'Expired', 'smart-woo-s... ); -
apply_filters( 'smartwoo_system_report_data', $report ); -
do_action( 'smartwoo_user_cancelled_service', $service_id, $service ); -
do_action( 'smartwoo_user_opted_out', $service_id ); -
do_action( 'wp_head' ); -
do_action( 'wp_login', $user->user_login, $user );
Generated from Smart Woo Service Invoicing'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: