WP_Links_List_Table::column_default
Handles the default column output.
Method of the class: WP_Links_List_Table{}
Hooks from the method
Returns
null. Nothing (null).
Usage
$WP_Links_List_Table = new WP_Links_List_Table(); $WP_Links_List_Table->column_default( $item, $column_name );
- $item(object) (required)
- Link object.
- $column_name(string) (required)
- Current column name.
Changelog
| Since 4.3.0 | Introduced. |
| Since 5.9.0 | Renamed $link to $item to match parent class for PHP 8 named parameter support. |
WP_Links_List_Table::column_default() WP Links List Table::column default code WP 7.0
public function column_default( $item, $column_name ) {
// Restores the more descriptive, specific name for use within this method.
$link = $item;
/**
* 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, $link->link_id );
}