/**
  * Returns the form response
  *
  * @return string
  */
 public function get_form_response()
 {
     if ($this->form_element instanceof MC4WP_Form_Element) {
         return $this->form_element->get_response_html();
     }
     return '';
 }
Пример #2
0
 /**
  * Get HTML string for this form.
  *
  * If you want to output a form, use `mc4wp_show_form` instead as it.
  *
  * @param string $element_id
  * @param array $config
  *
  * @return string
  */
 public function get_html($element_id = 'mc4wp-form', array $config = array())
 {
     $element = new MC4WP_Form_Element($this, $element_id, $config);
     $html = $element->generate_html();
     return $html;
 }