Filter to allow you to specify whether users completing checkout with PayPal can optionally set up payment without a PayPal account (only available for specific PayPal gateways and one-time payments).


apply_filters( 'pmpro_paypal_account_optional', bool $account_optional )

Parameters

$account_optional
bool; Set to true or false

Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/classes/gateways/class.pmprogateway_paypalexpress.php

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/classes/gateways/class.pmprogateway_paypalstandard.php

View in Source Code