WP_MS_Users_List_Table::column_name()
Handles the name column output.
Method of the class: WP_MS_Users_List_Table{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_MS_Users_List_Table = new WP_MS_Users_List_Table(); $WP_MS_Users_List_Table->column_name( $user );
- $user(WP_User) (required)
- The current WP_User object.
Changelog
Since 4.3.0 | Introduced. |
WP_MS_Users_List_Table::column_name() WP MS Users List Table::column name code WP 6.6.2
public function column_name( $user ) { if ( $user->first_name && $user->last_name ) { printf( /* translators: 1: User's first name, 2: Last name. */ _x( '%1$s %2$s', 'Display name based on first name and last name' ), $user->first_name, $user->last_name ); } elseif ( $user->first_name ) { echo $user->first_name; } elseif ( $user->last_name ) { echo $user->last_name; } else { echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ _x( 'Unknown', 'name' ) . '</span>'; } }