• Resolved protoo

    (@protoo)


    Is there a way to edit the form elements/titles? so as to ask for user crypto address for payment.

    • This topic was modified 4 years, 8 months ago by protoo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • A.Tariq

    (@arsalantariq)

    Hi @protoo,

    Thank you for contacting us, If you want to edit the bank transfer fields you can use the below code.

    add_filter( 'mycred_cashcred_bank_transfer_fields', 'modify_cashcred_bank_transfer_form' );
    
    function modify_cashcred_bank_transfer_form( $gateway_fields ) {
        //To remove fields
        unset( $gateway_fields['ac_name'] );
        unset( $gateway_fields['ac_number'] );
        unset( $gateway_fields['ac_code'] );
        unset( $gateway_fields['ba_name'] );
        unset( $gateway_fields['ro_number'] );
        unset( $gateway_fields['ib_name'] );
        unset( $gateway_fields['sw_code'] );
    
       //Add new field
       $gateway_fields['cryptoaddress'] = array(
           'type'        => 'text',
           'lable'       => 'Crypto Address',
           'classes'     => 'form-control',
           'placeholder' => 'Example: AHD7868909080',
       );
    
    return $gateway_fields;
    }
    Thread Starter protoo

    (@protoo)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Edit withdrawal form’ is closed to new replies.