diff --git a/assets/js/src/newsletters/listings/notification_history.jsx b/assets/js/src/newsletters/listings/notification_history.jsx index 2aef6f5d04..600ed89b66 100644 --- a/assets/js/src/newsletters/listings/notification_history.jsx +++ b/assets/js/src/newsletters/listings/notification_history.jsx @@ -3,6 +3,7 @@ import { Router, Link } from 'react-router' import classNames from 'classnames' import jQuery from 'jquery' import MailPoet from 'mailpoet' +import Hooks from 'wp-js-hooks' import Listing from 'listing/listing.jsx' import ListingTabs from 'newsletters/listings/tabs.jsx' @@ -40,7 +41,7 @@ const columns = [ } ]; -const newsletter_actions = [ +let newsletter_actions = [ { name: 'view', link: function(newsletter) { @@ -53,6 +54,8 @@ const newsletter_actions = [ } ]; +newsletter_actions = Hooks.applyFilters('mailpoet_newsletters_listings_notification_history_actions', newsletter_actions); + const NewsletterListNotificationHistory = React.createClass({ mixins: [ QueueMixin, StatisticsMixin, MailerMixin ], renderSentDate: function(newsletter) { diff --git a/assets/js/src/newsletters/listings/standard.jsx b/assets/js/src/newsletters/listings/standard.jsx index 116521ecaa..7a6df52287 100644 --- a/assets/js/src/newsletters/listings/standard.jsx +++ b/assets/js/src/newsletters/listings/standard.jsx @@ -3,6 +3,7 @@ import { Router, Link } from 'react-router' import classNames from 'classnames' import jQuery from 'jquery' import MailPoet from 'mailpoet' +import Hooks from 'wp-js-hooks' import Listing from 'listing/listing.jsx' import ListingTabs from 'newsletters/listings/tabs.jsx' @@ -98,7 +99,7 @@ const bulk_actions = [ } ]; -const newsletter_actions = [ +let newsletter_actions = [ { name: 'view', link: function(newsletter) { @@ -152,6 +153,8 @@ const newsletter_actions = [ } ]; +newsletter_actions = Hooks.applyFilters('mailpoet_newsletters_listings_standard_actions', newsletter_actions); + const NewsletterListStandard = React.createClass({ mixins: [ QueueMixin, StatisticsMixin, MailerMixin ], renderItem: function(newsletter, actions, meta) {