Remove filter mailpoet_segments_with_subscriber_count

[MAILPOET-3077]
This commit is contained in:
Rostislav Wolny
2020-09-14 14:00:52 +02:00
committed by Veljko V
parent dd4bf486a6
commit 331e40a137
4 changed files with 10 additions and 10 deletions

View File

@ -107,7 +107,6 @@ class Newsletters {
$data['items_per_page'] = $this->listingPageLimit->getLimitPerPage('newsletters');
$segments = Segment::getSegmentsWithSubscriberCount($type = false);
$segments = $this->dynamicSegmentsLoader->add($segments);
$segments = $this->wp->applyFilters('mailpoet_segments_with_subscriber_count', $segments);
usort($segments, function ($a, $b) {
return strcasecmp($a["name"], $b["name"]);
});

View File

@ -62,7 +62,6 @@ class Subscribers {
$data['items_per_page'] = $this->listingPageLimit->getLimitPerPage('subscribers');
$segments = Segment::getSegmentsWithSubscriberCount($type = false);
$segments = $this->dynamicSegmentsLoader->add($segments);
$segments = $this->wp->applyFilters('mailpoet_segments_with_subscriber_count', $segments);
usort($segments, function ($a, $b) {
return strcasecmp($a["name"], $b["name"]);
});