WP_Application_Passwords_List_Table::column_last_used()publicWP 5.6.0

Handles the last used column output.

Method of the class: WP_Application_Passwords_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Application_Passwords_List_Table = new WP_Application_Passwords_List_Table();
$WP_Application_Passwords_List_Table->column_last_used( $item );
$item(array) (required)
The current application password item.

Changelog

Since 5.6.0 Introduced.

WP_Application_Passwords_List_Table::column_last_used() code WP 6.6.2

public function column_last_used( $item ) {
	if ( empty( $item['last_used'] ) ) {
		echo '—';
	} else {
		echo date_i18n( __( 'F j, Y' ), $item['last_used'] );
	}
}