/var/www/html_uk/wp-content/plugins/automatewoo/includes/Fields/Date.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
<?php

namespace AutomateWoo\Fields;

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

/**
 * @class Date
 */
class Date extends Text {

    
/**
     * Date constructor.
     */
    
public function __construct() {
        
parent::__construct();

        
$this->title __'Date''automatewoo' );
        
$this->name  'date';
        
$this->set_placeholder'YYYY-MM-DD' );
        
$this->add_extra_attr'pattern''[0-9]{4}-[0-9]{2}-[0-9]{2}' );
        
$this->add_extra_attr'autocomplete''off' );

        
$this->add_classes'automatewoo-date-picker date-picker' );
    }
}