# Add new payout fields

**URL:** <https://community.hivepress.io/t/add-new-payout-fields/2457>\
**Category:** Marketplace\
**Tags:** marketplace\
**Created:** [October 20, 2022, 9:15pm UTC](https://community.hivepress.io/t/add-new-payout-fields/2457 "2022-10-20T21:15:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyonel](https://community.hivepress.io/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@lyonel](https://community.hivepress.io/u/lyonel)\
**Post date:** [October 20, 2022, 9:15pm UTC](https://community.hivepress.io/t/add-new-payout-fields/2457/1 "2022-10-20T21:15:56Z")

</div>

I manage to create a new field at payout forms using the next code:

```auto
add_filter(
	'hivepress/v1/forms/payout_request',
	function( $form ) {
		$form['fields']['banco'] = [
			'label' => 'Entidad Bancaria',
			'type' => 'text',
			'_order'	=> '10',
		];	
		return $form;
	}
);
add_filter(
	'hivepress/v1/forms/payout_request',
	function( $form ) {
		$form['fields']['banco']['required'] = true;
		return $form;
	},
	1000
);

```

How can I show this info in the Payout wordpress section?

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [October 21, 2022, 11:37am UTC](https://community.hivepress.io/t/add-new-payout-fields/2457/3 "2022-10-21T11:37:55Z")

</div>

I recommend using vendor attributes for this purpose, e.g. add custom attributes for the payment method credentials that you allow for payouts in Vendors/Attributes, mark them as Editable and Required. This way vendors will have to fill these fields, and they will not have to fill them every time on requesting a payout. As a site admin, you’ll be able to always check them in the vendor profile in WordPress/Vendors section.

Adding custom fields to the payout form, validating, saving and displaying the field values somewhere would require advanced customizations.

---

<div class="post-metadata">

**Author:** ![lyonel](https://community.hivepress.io/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@lyonel](https://community.hivepress.io/u/lyonel)\
**Post date:** [October 21, 2022, 2:03pm UTC](https://community.hivepress.io/t/add-new-payout-fields/2457/4 "2022-10-21T14:03:39Z")

</div>

I had already thought about that, but that would make the form to complete the profile very extensive since I am using the social links and bookings plugin that also add fields.

The fields should be required to request a payment but not to post a listing, that would help more people post listings without having to enter their bank information first.

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [October 22, 2022, 5:52pm UTC](https://community.hivepress.io/t/add-new-payout-fields/2457/6 "2022-10-22T17:52:18Z")

</div>

Sorry, there’s no simple code snippet for adding, validating, saving and displaying custom payout fields in the current version, please consider using vendor attributes - users will have to set them once, and they will not be added to the Add Listings form (they will be in the Complete Profile form, and it appears only if some fields are still not set for a vendor).

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [November 21, 2022, 5:52pm UTC](https://community.hivepress.io/t/add-new-payout-fields/2457/7 "2022-11-21T17:52:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
