WP_MS_Sites_List_Table::column_registered() WordPress Method
This function is responsible for the registered column output. The registered column is the date on which a site was created.
WP_MS_Sites_List_Table::column_registered( array $blog ) #
Handles the registered column output.
Parameters
- $blog
(array)(Required)Current site.
Source
File: wp-admin/includes/class-wp-ms-sites-list-table.php
public function column_registered( $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['registered'] ) {
echo '—';
} else {
echo mysql2date( $date, $blog['registered'] );
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |