Album.php
5 years ago
AlternateText.php
5 years ago
Artist.php
5 years ago
Author.php
5 years ago
AuthorName.php
5 years ago
AvailableSizes.php
5 years ago
Caption.php
5 years ago
Comments.php
5 years ago
Date.php
5 years ago
Description.php
5 years ago
Dimensions.php
5 years ago
Download.php
5 years ago
ExifData.php
5 years ago
FileName.php
5 years ago
FileSize.php
5 years ago
FullPath.php
5 years ago
Height.php
5 years ago
ID.php
5 years ago
MediaParent.php
5 years ago
Menu.php
5 years ago
Meta.php
5 years ago
MetaValue.php
5 years ago
MimeType.php
5 years ago
Taxonomy.php
5 years ago
Title.php
5 years ago
Width.php
5 years ago
Artist.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Column\Media; |
| 4 | |
| 5 | /** |
| 6 | * @since 4.3.2 |
| 7 | */ |
| 8 | class Artist extends Meta { |
| 9 | |
| 10 | public function __construct() { |
| 11 | parent::__construct(); |
| 12 | |
| 13 | $this->set_type( 'column-meta_artist' ); |
| 14 | $this->set_label( __( 'Artist', 'codepress-admin-columns' ) ); |
| 15 | } |
| 16 | |
| 17 | protected function get_sub_key() { |
| 18 | return 'artist'; |
| 19 | } |
| 20 | |
| 21 | public function get_value( $id ) { |
| 22 | $meta = $this->get_raw_value( $id ); |
| 23 | |
| 24 | return empty( $meta[ $this->get_sub_key() ] ) |
| 25 | ? $this->get_empty_char() |
| 26 | : $meta[ $this->get_sub_key() ]; |
| 27 | } |
| 28 | |
| 29 | } |