WP_Links_List_Table::column_default() WordPress Method
The WP_Links_List_Table::column_default() method is used to render the default column value for a links list table. This is typically the link URL or link name, but can be any column value that is registered for the links list table.
WP_Links_List_Table::column_default( object $item, string $column_name ) #
Handles the default column output.
Parameters
- $item
(object)(Required)Link object.
- $column_name
(string)(Required)Current column name.
Source
File: wp-admin/includes/class-wp-links-list-table.php
public function column_default( $item, $column_name ) { /** * Fires for each registered custom link column. * * @since 2.1.0 * * @param string $column_name Name of the custom column. * @param int $link_id Link ID. */ do_action( 'manage_link_custom_column', $column_name, $item->link_id ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.9.0 | Renamed $link to $item to match parent class for PHP 8 named parameter support. |
4.3.0 | Introduced. |