hivepress()->router->get_url( ‘custom_action’ ),
‘method’ => ‘POST’,
‘message’ => ‘New Form’,
‘reset’ => true,
// Set the field parameters.
‘fields’ => [
‘custom_field’ => [
‘label’ => ‘Custom field’,
‘type’ => ‘text’,
‘required’ => true,
‘_order’ => 123,
],
],
// Set the button parameters.
‘button’ => [
‘label’ => ‘Custom button’,
],
],
$args
);
parent::__construct( $args );
}
}