CommentCount.php
4 years ago
Description.php
4 years ago
DisplayName.php
4 years ago
Email.php
4 years ago
FirstName.php
4 years ago
FirstPost.php
4 years ago
FullName.php
4 years ago
ID.php
4 years ago
LastName.php
4 years ago
LastPost.php
4 years ago
Login.php
4 years ago
Name.php
4 years ago
Nicename.php
4 years ago
Nickname.php
4 years ago
PostCount.php
4 years ago
Posts.php
4 years ago
Registered.php
4 years ago
RichEditing.php
4 years ago
Role.php
4 years ago
ShowToolbar.php
4 years ago
Url.php
4 years ago
Username.php
4 years ago
Nickname.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Column\User; |
| 4 | |
| 5 | use AC\Column; |
| 6 | |
| 7 | /** |
| 8 | * @since 2.0 |
| 9 | */ |
| 10 | class Nickname extends Column\Meta { |
| 11 | |
| 12 | public function __construct() { |
| 13 | $this->set_type( 'column-nickname' ); |
| 14 | $this->set_label( __( 'Nickname', 'codepress-admin-columns' ) ); |
| 15 | } |
| 16 | |
| 17 | public function get_meta_key() { |
| 18 | return 'nickname'; |
| 19 | } |
| 20 | |
| 21 | public function get_value( $user_id ) { |
| 22 | return $this->get_raw_value( $user_id ); |
| 23 | } |
| 24 | |
| 25 | public function get_raw_value( $user_id ) { |
| 26 | return $this->get_meta_value( $user_id, $this->get_meta_key() ); |
| 27 | } |
| 28 | |
| 29 | } |