WP_Application_Passwords_List_Table::column_last_used() WordPress Method
The WP_Application_Passwords_List_Table::column_last_used() method is used to display the last time a given password was used. This is useful for keeping track of which passwords are still active and which ones may need to be reset.
WP_Application_Passwords_List_Table::column_last_used( array $item ) #
Handles the last used column output.
Parameters
- $item
(array)(Required)The current application password item.
Source
File: wp-admin/includes/class-wp-application-passwords-list-table.php
public function column_last_used( $item ) { if ( empty( $item['last_used'] ) ) { echo '—'; } else { echo date_i18n( __( 'F j, Y' ), $item['last_used'] ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |