Created
January 2, 2020 17:27
-
-
Save dancameron/806f2a55bf9ebcf1e2b06cec2f39711e to your computer and use it in GitHub Desktop.
Set Default Min Payment Amount Due
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 ) { | |
update_post_meta( $invoice->get_id(), '_si_client_set_payment', 1 ); | |
} | |
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.