Form Widget validation
- reorganized jquery validation lib to include languages - added Widget initializer class - fixed cache method in initializer - added widget front JS to validate and submit (ajax / post)
This commit is contained in:
@ -57,8 +57,7 @@ class Initializer {
|
||||
}
|
||||
|
||||
function setupWidget() {
|
||||
add_action('widgets_init', function() {
|
||||
register_widget('\MailPoet\Form\Widget');
|
||||
});
|
||||
$widget = new Widget();
|
||||
$widget->init();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user