W3cubDocs

/WordPress

WP_Links_List_Table::column_url( object $link )

Handles the link URL column output.

Parameters

$linkobjectrequired
The current link object.

Source

public function column_url( $link ) {
	$short_url = url_shorten( $link->link_url );
	echo "<a href='$link->link_url'>$short_url</a>";
}

Changelog

Version Description
4.3.0 Introduced.

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