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
<?php
/**
* WordPress media image property.
*/
class Papi_Property_Image extends Papi_Property_File {
/**
* File type.
*
* @var string
*/
protected $file_type = 'image';
/**
* Get labels.
*
* @return array
*/
public function get_labels() {
return [
'add' => __( 'Add image', 'papi' ),
'no_file' => __( 'No image selected', 'papi' )
];
}
}