Follow those steps:
- Go to your WordPress Dashboard
- Edit your Main Theme or Child Theme -> function.php page
- Then, paste the sample code below and update these files.
Note: You can run this code anywhere
Add recurring Payment Type
add_filter('cleanly/form_data/step2/payment/type', function( $types ){
// code here
$types['28'] = esc_html__( '28 Days', 'cleanly' );
// end code here
return $types;
});