Updates form subscription class to use the main API class instead of calling directly API endpoint

Modifies forms to pass api_version
Modifies forms to pass store form-specific values (e.g., form_id, email) inside a separate data array
This commit is contained in:
Vlad
2017-04-12 21:06:35 -04:00
parent a9c80c031f
commit b549f83422
5 changed files with 26 additions and 28 deletions

View File

@ -19,7 +19,7 @@ class Text extends Base {
$html .= '<input type="'.$type.'" class="mailpoet_text" ';
$html .= 'name="'.static::getFieldName($block).'" ';
$html .= 'name="data['.static::getFieldName($block).']" ';
$html .= 'title="'.static::getFieldLabel($block).'" ';