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.


Top ↑

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 );
	}


Top ↑

Changelog

Changelog
VersionDescription
5.9.0Renamed $link to $item to match parent class for PHP 8 named parameter support.
4.3.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.