WC_Admin_API_Keys_Table_List::column_last_access()
Return last access column.
Method of the class: WC_Admin_API_Keys_Table_List{}
Hooks from the method
Return
String
.
Usage
$WC_Admin_API_Keys_Table_List = new WC_Admin_API_Keys_Table_List(); $WC_Admin_API_Keys_Table_List->column_last_access( $key );
- $key(array) (required)
- Key data.
WC_Admin_API_Keys_Table_List::column_last_access() WC Admin API Keys Table List::column last access code WC 9.4.2
public function column_last_access( $key ) { if ( ! empty( $key['last_access'] ) ) { /* translators: 1: last access date 2: last access time */ $date = sprintf( __( '%1$s at %2$s', 'woocommerce' ), date_i18n( wc_date_format(), strtotime( $key['last_access'] ) ), date_i18n( wc_time_format(), strtotime( $key['last_access'] ) ) ); return apply_filters( 'woocommerce_api_key_last_access_datetime', $date, $key['last_access'] ); } return __( 'Unknown', 'woocommerce' ); }