Uses
Uses | Description |
---|---|
wp-includes/formatting.php: url_shorten() | Shorten a URL, to be used as link text. |
Handles the link URL column output.
(object) (Required) The current link object.
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>"; }
Version | Description |
---|---|
4.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_links_list_table/column_url