CommentCount.php
8 years ago
Description.php
8 years ago
DisplayName.php
8 years ago
Email.php
8 years ago
FirstName.php
8 years ago
ID.php
8 years ago
LastName.php
8 years ago
Name.php
8 years ago
Nickname.php
8 years ago
PostCount.php
8 years ago
Posts.php
8 years ago
Registered.php
8 years ago
RichEditing.php
8 years ago
Role.php
8 years ago
ShowToolbar.php
8 years ago
Url.php
8 years ago
Username.php
8 years ago
Registered.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * @since 2.0 |
| 9 | */ |
| 10 | class AC_Column_User_Registered extends AC_Column { |
| 11 | |
| 12 | public function __construct() { |
| 13 | $this->set_type( 'column-user_registered' ); |
| 14 | $this->set_label( __( 'Registered', 'codepress-admin-columns' ) ); |
| 15 | } |
| 16 | |
| 17 | public function get_value( $user_id ) { |
| 18 | return $this->get_formatted_value( get_date_from_gmt( $this->get_raw_value( $user_id ) ) ); |
| 19 | } |
| 20 | |
| 21 | public function get_raw_value( $user_id ) { |
| 22 | return get_userdata( $user_id )->user_registered; |
| 23 | } |
| 24 | |
| 25 | public function register_settings() { |
| 26 | $this->add_setting( new AC_Settings_Column_Date( $this ) ); |
| 27 | } |
| 28 | |
| 29 | } |
| 30 |