Add front-end WP-style hooks support for Premium [PREMIUM-2]

This commit is contained in:
Alexey Stoletniy
2017-02-28 17:58:04 +03:00
parent 18e2d26587
commit bef0097f5b
7 changed files with 26 additions and 2 deletions

View File

@@ -1,11 +1,13 @@
define(
[
'mailpoet',
'wp-js-hooks',
'newsletters/types/notification/scheduling.jsx',
'underscore'
],
function(
MailPoet,
Hooks,
Scheduling,
_
) {
@@ -101,6 +103,8 @@ define(
}
];
Hooks.doAction('mailpoet_newsletter_3rd_step_fields', fields);
return {
getFields: function(newsletter) {
return fields;

View File

@@ -4,6 +4,7 @@ define(
'jquery',
'underscore',
'mailpoet',
'wp-js-hooks',
'form/fields/checkbox.jsx',
'form/fields/select.jsx',
'form/fields/text.jsx',
@@ -13,6 +14,7 @@ define(
jQuery,
_,
MailPoet,
Hooks,
Checkbox,
Select,
Text
@@ -411,6 +413,8 @@ define(
}
];
Hooks.doAction('mailpoet_newsletter_3rd_step_fields', fields);
return {
getFields: function(newsletter) {
return fields;

View File

@@ -1,10 +1,12 @@
define(
[
'mailpoet',
'wp-js-hooks',
'newsletters/types/welcome/scheduling.jsx'
],
function(
MailPoet,
Hooks,
Scheduling
) {
@@ -71,6 +73,8 @@ define(
}
];
Hooks.doAction('mailpoet_newsletter_3rd_step_fields', fields);
return {
getFields: function(newsletter) {
return fields;
@@ -83,4 +87,3 @@ define(
};
}
);