Property | Type | Description | |
---|---|---|---|
$ID | string | ||
$config | array | Can be used to set element-specific config settings. Accepts the following keys. - lists: Customized number of MailChimp list ID's to subscribe to. - email_type: The email type | |
$form | MC4WP_Form | ||
$is_submitted | boolean |
Method | Description | |
---|---|---|
__construct ( MC4WP_Form $form, string $ID, $config = [] ) | ||
generate_html ( array $config = null ) : string | ||
get_response_html ( boolean $force_show = false ) : string | Gets the form response string |
Method | Description | |
---|---|---|
get_css_classes ( ) : string | Get a space separated list of CSS classes for this form | |
get_form_element_attributes ( ) : string | Get all HTMl attributes for the form element | |
get_hidden_fields ( ) : string | ||
get_html_after_fields ( ) : string | Get HTML to be added _after_ the HTML of the form fields. | |
get_html_before_fields ( ) : string | Get HTML to be added _before_ the HTML of the form fields. | |
get_message_html ( string $key ) : string | Get HTML string for a message, including wrapper element. | |
get_response_position ( ) : string | ||
get_visible_fields ( ) : string |
public __construct ( MC4WP_Form $form, string $ID, $config = [] ) | ||
$form | MC4WP_Form | |
$ID | string | |
$config | array |
public generate_html ( array $config = null ) : string | ||
$config | array | Use this to override the configuration for this form element |
return | string |
protected get_css_classes ( ) : string | ||
return | string |
protected get_form_element_attributes ( ) : string | ||
return | string |
protected get_html_after_fields ( ) : string | ||
return | string |
protected get_html_before_fields ( ) : string | ||
return | string |
protected get_message_html ( string $key ) : string | ||
$key | string | |
return | string |
public get_response_html ( boolean $force_show = false ) : string | ||
$force_show | boolean | |
return | string |
public array $config | ||
return | array |