WP_Application_Passwords_List_Table::column_default() WordPress Method

The WP_Application_Passwords_List_Table::column_default() method is used to display the default column value for a given password. This method is called by the prepare_items() method for each password in the list. The default columns are: name, hash, length, user_id, created, and last_used. This method can be overridden by a subclass to customize the display of the default columns.

WP_Application_Passwords_List_Table::column_default( array $item, string $column_name ) #

Generates content for a single row of the table


Parameters

$item

(array)(Required)The current item.

$column_name

(string)(Required)The current column name.


Top ↑

Source

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

	protected function column_default( $item, $column_name ) {
		/**
		 * Fires for each custom column in the Application Passwords list table.
		 *
		 * Custom columns are registered using the {@see 'manage_application-passwords-user_columns'} filter.
		 *
		 * @since 5.6.0
		 *
		 * @param string $column_name Name of the custom column.
		 * @param array  $item        The application password item.
		 */
		do_action( "manage_{$this->screen->id}_custom_column", $column_name, $item );
	}


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.