WordPress action hook

si_doc_generation_start

Fired by 4 WordPress plugins, running on 10K+ sites between them.

How to use si_doc_generation_start

It's an action: your callback runs at that point. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'si_doc_generation_start', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from weForms's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire si_doc_generation_start

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. weForms icon weForms10,000+ installs do_action( 'si_doc_generation_start' ) includes/integrations/sprout-invoices/class-integration-sprout-invoices.php:353
  2. WP Forms + Sprout Invoices icon WP Forms + Sprout Invoices300+ installs do_action( 'si_doc_generation_start' ) inc/WPForms_Controller.php:39
  3. Gravity Forms + Sprout Invoices icon Gravity Forms + Sprout Invoices70+ installs do_action( 'si_doc_generation_start' ) inc/SI_GF_Integration_Addon.php:270
  4. Ninja Forms + Sprout Invoices icon Ninja Forms + Sprout Invoices50+ installs do_action( 'si_doc_generation_start' ) includes/Actions/CreateInvoice.php:260

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.