pronamic / wp-pay-core

Core components for the WordPress payment processing library. This library is used in the WordPress plugin Pronamic Pay: https://www.pronamicpay.com/, but also allows other plugin developers to set up a payment plugin.
https://www.wp-pay.org/
GNU General Public License v3.0
27 stars 3 forks source link

Multi-Select option on Gateway Configuration page. #43

Closed knit-pay closed 3 years ago

knit-pay commented 3 years ago

Is there a way to create a multi-select input field on the Gateway configuration page? I can't see such an option in meta-box-gateway-settings.php

https://www.w3schools.com/tags/att_select_multiple.asp

https://github.com/wp-pay/core/blob/f5fdc22e6a39071e8f057669b802178515ce3d25/views/meta-box-gateway-settings.php#L381-L390

remcotolsma commented 3 years ago

Unfortunately this is currently not possible, but you can define a custom field via a callback.

https://github.com/wp-pay/core/blob/f5fdc22e6a39071e8f057669b802178515ce3d25/views/meta-box-gateway-settings.php#L431-L435

knit-pay commented 3 years ago

Thanks for the information.