Add front-end WP-style hooks support for Premium [PREMIUM-2]
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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(
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user