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.
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>"; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |