Support button element for info_text field type in settings

- This allows the info_text field to display a button element. Button element is used for Stripe's Connect/Disconnect functionality. The issue with anchor tag, it requires to deattach the onclick function before you can disable it. With button, you only need to add a disabled attribute to prevent the js function from triggering
This commit is contained in:
Champ Camba
2023-06-07 18:06:09 +08:00
parent ba9e6cec20
commit 4b21b16880
@@ -125,6 +125,9 @@ if ( ! class_exists( 'um\admin\core\Admin_Forms' ) ) {
'target' => array(),
'class' => array(),
),
'button' => array(
'class' => array(),
),
'i' => array(
'class' => array(),
),