| Server IP : 69.72.244.102 / Your IP : 216.73.216.164 Web Server : LiteSpeed System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : konzalta ( 1271) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/konzalta/public_html/wp-content/plugins/wemail/includes/Core/Segment/ |
Upload File : |
<?php
namespace WeDevs\WeMail\Core\Segment;
use WeDevs\WeMail\Traits\Singleton;
class Segment {
use Singleton;
public function conditions() {
$conditions = array(
'IS' => __( 'is', 'wemail' ),
'ISNOT' => __( 'is not', 'wemail' ),
'CONT' => __( 'contains', 'wemail' ),
'NCONT' => __( 'not contains', 'wemail' ),
'BEGINSW' => __( 'begins with', 'wemail' ),
'ENDSW' => __( 'ends with', 'wemail' ),
'HAS' => __( 'has', 'wemail' ),
'HASNOT' => __( 'has not', 'wemail' ),
'FROM' => __( 'from', 'wemail' ),
'NFROM' => __( 'not from', 'wemail' ),
'INGRP' => __( 'in group', 'wemail' ),
'NINGRP' => __( 'not in group', 'wemail' ),
'UNSUBFRM' => __( 'unsubscribed from', 'wemail' ),
'EQUAL' => __( 'is equal to', 'wemail' ),
'GT' => __( 'greater than', 'wemail' ),
'LT' => __( 'less than', 'wemail' ),
'BTWN' => __( 'between', 'wemail' ),
'AFTER' => __( 'After', 'wemail' ),
'BEFORE' => __( 'Before', 'wemail' ),
'IN' => __( 'in', 'wemail' ),
'NIN' => __( 'not in', 'wemail' ),
);
return apply_filters( 'wemail_segment_conditions', $conditions );
}
public function all() {
return wemail()->api->segments()->all()->get();
}
public function items() {
return wemail()->api->segments()->items()->get();
}
public function get( $id ) {
return wemail()->api->segments( $id )->get();
}
}