Hide WooCommerce segments when WooCommerce is not active
[MAILPOET-2163]
This commit is contained in:
committed by
Jack Kitterhing
parent
92a85d553b
commit
c1c2d0a102
@ -168,7 +168,7 @@ class Subscriber extends Model {
|
||||
|
||||
$segments = Segment::orderByAsc('name')
|
||||
->whereNull('deleted_at')
|
||||
->whereIn('type', [Segment::TYPE_DEFAULT, Segment::TYPE_WP_USERS, Segment::TYPE_WC_USERS])
|
||||
->whereIn('type', Segment::getSegmentTypes())
|
||||
->findMany();
|
||||
$segment_list = [];
|
||||
$segment_list[] = [
|
||||
|
Reference in New Issue
Block a user