WP_Links_List_Table::column_default( object $item, string $column_name )

In this article

Handles the default column output.

Parameters

$itemobjectrequired
Link object.
$column_namestringrequired
Current column name.

Source

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

Hooks

do_action( ‘manage_link_custom_column’, string $column_name, int $link_id )

Fires for each registered custom link column.

Changelog

VersionDescription
5.9.0Renamed $link to $item to match parent class for PHP 8 named parameter support.
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.