W3cubDocs

/WordPress

WP_MS_Sites_List_Table::column_registered( array $blog )

Handles the registered column output.

Description

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 ( $blog['registered'] === '0000-00-00 00:00:00' ) {
			echo '—';
		} else {
			echo mysql2date( $date, $blog['registered'] );
		}
	}

Changelog

Version Description
4.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_ms_sites_list_table/column_registered