Using Gravity Forms ‘gform_ppcp_enable_funding’ PHP filter

The gform_ppcp_enable_funding filter allows you to add a funding source to the permitted list of sources for a form using the PayPal Checkout method.


To apply this filter to all forms:

add_filter('gform_ppcp_enable_funding', function($sources) {
    $sources['source_id'] = 'Source Name';
    return $sources;


  • $sources (array): An array of funding sources to be added to the permitted list.

For the latest updates on available funding sources, see the PayPal Checkout developer documentation.

More information

See Gravity Forms Docs: gform_ppcp_enable_funding


Add Credit or Debit Cards as a Funding Source

This example demonstrates how to add credit or debit cards as a potential funding source. PayPal ultimately decides which funding sources are shown for each visitor.

add_filter('gform_ppcp_enable_funding', function($sources) {
    $sources['card'] = 'Card';
    return $sources;

Place this code in the functions.php file of your active theme.