Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created March 30, 2018 22:29
Show Gist options
  • Save dancameron/1e6f8b523e55aad6c6e0a5a29b0dd3a7 to your computer and use it in GitHub Desktop.
Save dancameron/1e6f8b523e55aad6c6e0a5a29b0dd3a7 to your computer and use it in GitHub Desktop.
Set the Default Redirect URL
<?php // don't add this line since it's already in your functions.php file
function _si_redirect_url_meta_fields( $fields ) {
if ( '' === $fields['payment_redirect']['default'] ) {
$fields['payment_redirect']['default'] = 'http://yoursite.com/url/';
}
return $fields;
}
add_filter( 'si_redirect_url_meta_fields', '_si_redirect_url_meta_fields' );
@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