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.


Parameters

$item

(array)(Required)The current application password item.


Top ↑

Source

File: wp-admin/includes/class-wp-application-passwords-list-table.php

	public function column_last_ip( $item ) {
		if ( empty( $item['last_ip'] ) ) {
			echo '—';
		} else {
			echo $item['last_ip'];
		}
	}

Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.