WordPress action hook
si_new_record
Fired by 6 WordPress plugins, running on 1,630+ sites between them.
How to use si_new_record
It's an action: your callback runs at that point and receives 6 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'si_new_record', function( $sprintf, $arg2, $estimate_id, $sprintf2, $arg5, $arg6 ) {
// Your code runs here.
}, 10, 6 );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.
6 plugins that fire si_new_record
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Sprout Invoices1,000+ installs
do_action( 'si_new_record', $data, $type, $associate_id, $subject, 1 )controllers/developer/Logs.php:176 -
WP Forms + Sprout Invoices300+ installs
do_action( 'si_new_record', sprintf( __( 'Invoice Submitted: Form %s.', 'sprout-invoices' ), $args['history_link'] ), self::SUBMISSION_UPDATE, $estimate_id, sprintf( __( 'Invoice Submitted: Form %s.', 'sprout-invoices' ), $args['history_link'] ), 0, false )inc/WPForms_Controller.php:69 -
Formidable Forms + Sprout Invoices200+ installs
do_action( 'si_new_record', sprintf( __( 'Invoice Submitted: Form %s.', 'sprout-invoices' ), $args['history_link'] ), self::SUBMISSION_UPDATE, $estimate_id, sprintf( __( 'Invoice Submitted: Form %s.', 'sprout-invoices' ), $args['history_link'] ), 0, false )inc/Formidable_Submission.php:67 -
Gravity Forms + Sprout Invoices70+ installs
do_action( 'si_new_record', sprintf( __( 'Invoice Submitted: Form %s.', 'sprout-invoices' ), $history_link ), 'invoice_submission', $invoice_id, sprintf( __( 'Invoice Submitted: Form %s.', 'sprout-invoices' ), $history_link ), 0, false )inc/SI_GF_Integration_Addon.php:305 -
Ninja Forms + Sprout Invoices50+ installs
do_action( 'si_new_record', sprintf( __( 'Invoice Submitted: Form %s.', 'sprout-invoices' ), $history_link ), 'invoice_submission', $invoice_id, sprintf( __( 'Invoice Submitted: Form %s.', 'sprout-invoices' ), $history_link ), 0, false )includes/Actions/CreateInvoice.php:288 -
Caldera Forms10+ installs
do_action( 'si_new_record', sprintf( si__('%s.'), $parsed_args['history_link'] ), SI_Estimate_Submissions::SUBMISSION_UPDATE, $estimate_id, sprintf( si__('%s.'), $parsed_args['history_link'] ), 0, FALSE )cf-sprout-invoice.php:205
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.