Created
March 30, 2018 22:29
-
-
Save dancameron/1e6f8b523e55aad6c6e0a5a29b0dd3a7 to your computer and use it in GitHub Desktop.
Set the Default Redirect URL
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 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' ); |
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.