$form_widget = new \MailPoet\Form\Widget(); echo $form_widget->widget(array('form' => 2, 'form_type' => 'php'));