Comment.php
3 months ago
Media.php
3 months ago
NetworkSite.php
3 months ago
NetworkUser.php
3 months ago
Post.php
3 months ago
Taxonomy.php
3 months ago
TotalItemsTrait.php
3 months ago
User.php
3 months ago
User.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\ListTable; |
| 4 | |
| 5 | use AC\ListTable; |
| 6 | use WP_Users_List_Table; |
| 7 | |
| 8 | class User implements ListTable |
| 9 | { |
| 10 | |
| 11 | private WP_Users_List_Table $table; |
| 12 | |
| 13 | public function __construct(WP_Users_List_Table $table) |
| 14 | { |
| 15 | $this->table = $table; |
| 16 | } |
| 17 | |
| 18 | public function render_cell(string $column_id, $row_id): string |
| 19 | { |
| 20 | return (string)apply_filters('manage_users_custom_column', '', $column_id, $row_id); |
| 21 | } |
| 22 | |
| 23 | public function render_row($id): string |
| 24 | { |
| 25 | return $this->table->single_row(get_userdata($id)); |
| 26 | } |
| 27 | |
| 28 | } |