gform_paypal_return_url_port

Description

This filter allow the port to be changed 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.

Examples

add_filter( 'gform_paypal_return_url_port', 'change_port' );
function change_port(){
	return '81';
}

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in the Gravity Forms PayPal Standard Add-On version 2.4.

Source Code

This filter is located in GFPayPal::return_url() in class-gf-paypal.php.