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
Role.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * @since 3.0 |
| 9 | */ |
| 10 | class AC_Column_User_Role extends AC_Column_Meta { |
| 11 | |
| 12 | public function __construct() { |
| 13 | $this->set_type( 'role' ); |
| 14 | $this->set_original( true ); |
| 15 | } |
| 16 | |
| 17 | public function get_value( $id ) { |
| 18 | return null; |
| 19 | } |
| 20 | |
| 21 | // Meta |
| 22 | |
| 23 | public function get_meta_key() { |
| 24 | global $wpdb; |
| 25 | |
| 26 | return $wpdb->get_blog_prefix() . 'capabilities'; // WPMU compatible |
| 27 | } |
| 28 | |
| 29 | // Settings |
| 30 | |
| 31 | public function register_settings() { |
| 32 | $this->get_setting( 'width' )->set_default( 15 ); |
| 33 | } |
| 34 | |
| 35 | } |
| 36 |