RWMB_Datetime_Field::get_attributes PHP 메소드

get_attributes() 공개 정적인 메소드

Get the attributes for a field
public static get_attributes ( array $field, mixed $value = null ) : array
$field array
$value mixed
리턴 array
    public static function get_attributes($field, $value = null)
    {
        $attributes = parent::get_attributes($field, $value);
        $attributes = wp_parse_args($attributes, array('data-options' => wp_json_encode($field['js_options'])));
        $attributes['type'] = 'text';
        return $attributes;
    }