WP_MS_Sites_List_Table::column_lastupdated
Handles the lastupdated column output.
Method of the class: WP_MS_Sites_List_Table{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_MS_Sites_List_Table = new WP_MS_Sites_List_Table(); $WP_MS_Sites_List_Table->column_lastupdated( $blog );
- $blog(array) (required)
- Current site.
Notes
- Global. String.
$modeList table view mode.
Changelog
| Since 4.3.0 | Introduced. |
WP_MS_Sites_List_Table::column_lastupdated() WP MS Sites List Table::column lastupdated code WP 7.0
public function column_lastupdated( $blog ) {
global $mode;
if ( 'list' === $mode ) {
$date = __( 'Y/m/d' );
} else {
$date = __( 'Y/m/d g:i:s a' );
}
if ( '0000-00-00 00:00:00' === $blog['last_updated'] ) {
_e( 'Never' );
} else {
echo mysql2date( $date, $blog['last_updated'] );
}
}