wordpress / latest / classes / wp_links_list_table / column_default.html

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. View all references

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

Hooks

Uses

Uses Description

Changelog

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

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_links_list_table/column_default