Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created January 2, 2020 17:27
Show Gist options
  • Save dancameron/806f2a55bf9ebcf1e2b06cec2f39711e to your computer and use it in GitHub Desktop.
Save dancameron/806f2a55bf9ebcf1e2b06cec2f39711e to your computer and use it in GitHub Desktop.
Set Default Min Payment Amount Due
<?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' );
@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