Hey @ailaina123456,
Thank you for reaching out! Currently, you cannot add a payment mode tab out of the box.
However, you could leverage our fields API to extend the fields that are shown in the affiliate registration and affiliate account forms.
Here’s a snippet for how this could look:
function slicewp_custom_register_affiliate_fields_bank_details( $fields ) {
$fields[] = array(
'type' => 'heading',
'default_value' => __( 'Bank Account Details', 'slicewp' ),
'output_conditionals' => array( 'form' => array( 'affiliate_registration', 'affiliate_account' ) )
);
$fields[] = array(
'type' => 'text',
'id' => 'slicewp-bank-name',
'name' => 'bank_name',
'label' => __( 'Bank Name', 'slicewp' ),
'is_required' => true,
'output_conditionals' => array( 'form' => array( 'affiliate_registration', 'affiliate_account' ) )
);
$fields[] = array(
'type' => 'text',
'id' => 'slicewp-bank-account-number',
'name' => 'bank_account_number',
'label' => __( 'Bank Account Number', 'slicewp' ),
'is_required' => true,
'output_conditionals' => array( 'form' => array( 'affiliate_registration', 'affiliate_account' ) )
);
return $fields;
}
add_filter( 'slicewp_register_affiliate_fields', 'slicewp_custom_register_affiliate_fields_bank_details', 50 );
Please copy the code and add it to your website. If you’re not sure how to add code snippets to your site, you can use the Code Snippets plugin (https://www.ads-software.com/plugins/code-snippets/).
The above code will add a heading and two fields, one for the bank name and one for the bank account number. I believe this approach should work for this scenario.
Please adapt the code to your needs (add extra fields for the needed information) and let me know how it goes.
Thank you and best wishes,
Mihai