WordPress action hook
si_invoice_submitted_from_adv_form
Fired by 5 WordPress plugins, running on 11K+ sites between them.
How to use si_invoice_submitted_from_adv_form
It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'si_invoice_submitted_from_adv_form', function( $invoice, $args ) {
// Your code runs here.
}, 10, 2 );Argument names come from WP Forms + Sprout Invoices's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
5 plugins that fire si_invoice_submitted_from_adv_form
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
weForms10,000+ installs
do_action( 'si_invoice_submitted_from_adv_form', $invoice, $invoice_args, $submission, $submission['form_data'] )includes/integrations/sprout-invoices/class-integration-sprout-invoices.php:390 -
WP Forms + Sprout Invoices300+ installs
do_action( 'si_invoice_submitted_from_adv_form', $invoice, $args )inc/WPForms_Controller.php:95 -
Formidable Forms + Sprout Invoices200+ installs
do_action( 'si_invoice_submitted_from_adv_form', $invoice, $args )inc/Formidable_Submission.php:90 -
Gravity Forms + Sprout Invoices70+ installs
do_action( 'si_invoice_submitted_from_adv_form', $invoice, $invoice_args )inc/SI_GF_Integration_Addon.php:284 -
Ninja Forms + Sprout Invoices50+ installs
do_action( 'si_invoice_submitted_from_adv_form', $invoice, $invoice_args, $submission, $entry )includes/Actions/CreateInvoice.php:296
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.