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.
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |