Description
Set the Stripe URL port if it’s not 80.
Usage
$server_port = apply_filters( 'gform_stripe_url_port', $_SERVER['SERVER_PORT'] );
Parameters
- $server_port string
Default server port.
Example
add_filter( 'gform_stripe_url_port', function ( $server_port ) {
gf_stripe()->log_debug( __METHOD__ . '(): Original port: ' . $server_port );
$server_port = '80'; // Replace 80 with the port you want to use.
gf_stripe()->log_debug( __METHOD__ . '(): Custom port: ' . $server_port );
return $server_port;
} );
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Stripe 3.0.
Source Code
This filter is located in class-gf-stripe.php.