Last active
September 3, 2019 21:10
-
-
Save dancameron/facace6088df1222c4e3f19382347892 to your computer and use it in GitHub Desktop.
Set Invoice Status to Pending after Form Submission
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.