WP_Application_Passwords_List_Table::column_last_ip() WordPress Method
The WP_Application_Passwords_List_Table::column_last_ip() method is used to retrieve the last IP address used to access a given application password. This can be useful for security purposes, to see if a password is being used from an authorized location.
WP_Application_Passwords_List_Table::column_last_ip( array $item ) #
Handles the last ip column output.
Contents
Parameters
- $item
(array)(Required)The current application password item.
Source
File: wp-admin/includes/class-wp-application-passwords-list-table.php
97 98 99 100 101 102 103 | public function column_last_ip( $item ) { if ( empty ( $item [ 'last_ip' ] ) ) { echo '—' ; } else { echo $item [ 'last_ip' ]; } } |
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |