0

Adding PayPal to a gravity form is easy!

But when there is an unwanted “Pay Later” button – what do you do?

Put the following code into your functions.php file, and that button will be removed:

 

				
					

add_filter( 'gform_ppcp_disable_funding', 'ppcp_disable_paylater' );
function ppcp_disable_paylater( $disabled_funding ) {
$disabled_funding[] = 'paylater';
return $disabled_funding;
}
				
			

Leave a Reply

All rights reserved CNFdesigns.