The gform_paypal_return_url_port filter allows you to change the port for the return_url that is sent to PayPal.
Usage
add_filter('gform_paypal_return_url_port', 'your_function_name', 10, 1);
Parameters
- $server_port (string): The current port.
More information
See Gravity Forms Docs: gform_paypal_return_url_port
Examples
Change port to 81
This example changes the PayPal return URL port to 81.
add_filter('gform_paypal_return_url_port', 'change_port_to_81');
function change_port_to_81() {
return '81';
}
Change port to 8080
This example changes the PayPal return URL port to 8080.
add_filter('gform_paypal_return_url_port', 'change_port_to_8080');
function change_port_to_8080() {
return '8080';
}
Change port to 3000
This example changes the PayPal return URL port to 3000.
add_filter('gform_paypal_return_url_port', 'change_port_to_3000');
function change_port_to_3000() {
return '3000';
}
Change port to 8000
This example changes the PayPal return URL port to 8000.
add_filter('gform_paypal_return_url_port', 'change_port_to_8000');
function change_port_to_8000() {
return '8000';
}
Change port to 8888
This example changes the PayPal return URL port to 8888.
add_filter('gform_paypal_return_url_port', 'change_port_to_8888');
function change_port_to_8888() {
return '8888';
}