WP_Links_List_Table::column_url() WordPress Method

The WP_Links_List_Table::column_url() method is used to display the URL for each link in the list table. This method takes a single argument, the link ID, and outputs the link URL.

WP_Links_List_Table::column_url( object $link ) #

Handles the link URL column output.


Parameters

$link

(object)(Required)The current link object.


Top ↑

Source

File: wp-admin/includes/class-wp-links-list-table.php

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


Top ↑

Changelog

Changelog
VersionDescription
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.