/var/www/html_uk/wp-content/plugins/automatewoo/includes/Fields/Subscription_Status.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php

namespace AutomateWoo\Fields;

use 
AutomateWoo\Subscription_Workflow_Helper;

if ( ! 
defined'ABSPATH' ) ) {
    exit;
}

/**
 * @class Subscription_Status
 */
class Subscription_Status extends Select {

    
/** @var string */
    
protected $name 'subscription_status';

    
/**
     * @param bool $allow_all
     */
    
public function __construct$allow_all true ) {
        
parent::__constructtrue );

        
$this->set_title__'Subscription status''automatewoo' ) );

        if ( 
$allow_all ) {
            
$this->set_placeholder__'[Any]''automatewoo' ) );
        }

        
$this->set_optionsSubscription_Workflow_Helper::get_subscription_statuses() );
    }
}