Skip to content

Instantly share code, notes, and snippets.

@dancameron
Last active September 3, 2019 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancameron/facace6088df1222c4e3f19382347892 to your computer and use it in GitHub Desktop.
Save dancameron/facace6088df1222c4e3f19382347892 to your computer and use it in GitHub Desktop.
Set Invoice Status to Pending after Form Submission
<?php // don't include this line in your functions.php, since it already starts with it.
function _change_status_of_invoice_submission( SI_Invoice $invoice ) {
$invoice->set_status( 'publish' );
}
add_action( 'si_gravity_forms_integration_invoice_created', '_change_status_of_invoice_submission' );
@dancameron
Copy link
Author

This snippet is a customization for Sprout Invoices. A customizable solution that provides a way for you to get paid via your WordPress site. For more information please don't hesitate to reach out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment