ID.php
10 years ago
actions.php
10 years ago
comment-count.php
10 years ago
description.php
10 years ago
display-name.php
10 years ago
first-name.php
10 years ago
last-name.php
10 years ago
nickname.php
10 years ago
post-count.php
10 years ago
registered.php
10 years ago
rich-editing.php
10 years ago
url.php
10 years ago
ID.php
39 lines
| 1 | <?php |
| 2 | /** |
| 3 | * CPAC_Column_User_ID |
| 4 | * |
| 5 | * @since 2.0 |
| 6 | */ |
| 7 | class CPAC_Column_User_ID extends CPAC_Column { |
| 8 | |
| 9 | /** |
| 10 | * @see CPAC_Column::init() |
| 11 | * @since 2.2.1 |
| 12 | */ |
| 13 | public function init() { |
| 14 | |
| 15 | parent::init(); |
| 16 | |
| 17 | // Properties |
| 18 | $this->properties['type'] = 'column-user_id'; |
| 19 | $this->properties['label'] = __( 'User ID', 'codepress-admin-columns' ); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * @see CPAC_Column::get_value() |
| 24 | * @since 2.0 |
| 25 | */ |
| 26 | function get_value( $user_id ) { |
| 27 | |
| 28 | return $this->get_raw_value( $user_id ); |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * @see CPAC_Column::get_raw_value() |
| 33 | * @since 2.0.3 |
| 34 | */ |
| 35 | function get_raw_value( $user_id ) { |
| 36 | |
| 37 | return $user_id; |
| 38 | } |
| 39 | } |