Adds method to return all segments minus WP Users segment(s)

This commit is contained in:
Vlad
2017-05-10 22:14:20 -04:00
parent 5e23fa4295
commit 73121c2ca5
2 changed files with 145 additions and 0 deletions

View File

@ -70,4 +70,8 @@ class API {
return SubscriberSegment::subscribeToSegments($subscriber, $found_segments_ids);
}
function getLists() {
return Segment::whereNotEqual('type', Segment::TYPE_WP_USERS)->findArray();
}
}