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;
    }