Filter
rpress_paypal_oauth_scopes
On this page
Filters the OAuth scopes requested when connecting a PayPal account.
Runs in rpress_get_paypal_oauth_scopes. The default scopes are openid and email. The list is joined with spaces and sent as the scope parameter of the PayPal authorization request.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$scopes | array | List of OAuth scope strings. |
Return value#
array. The list of OAuth scope strings.
Example#
function my_paypal_oauth_scopes( $scopes ) {
$scopes[] = 'profile';
return array_unique( $scopes );
}
add_filter( 'rpress_paypal_oauth_scopes', 'my_paypal_oauth_scopes', 10, 1 );
Source#
Applied in:
includes/gateways/paypal-standard.php(line 537), inrpress_get_paypal_oauth_scopes()
See also#
Was this page helpful?
