WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 125 | <?php foreach($link_columns as $column_display_name) { |
| 126 | echo $column_display_name; |
| 127 | } ?> |
| 128 | <th style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById('links'));" /></th> |
| 129 | </tr> |
| 130 | </thead> |
| 131 | <tbody id="the-list"> |
| 132 | <?php |
| 133 | foreach ($links as $link) { |
| 134 | $link->link_name = attribute_escape(apply_filters('link_title', $link->link_name)); |
| 135 | $link->link_description = wp_specialchars(apply_filters('link_description', $link->link_description)); |
| 136 | $link->link_url = clean_url($link->link_url); |
| 137 | $link->link_category = wp_get_link_cats($link->link_id); |
| 138 | $short_url = str_replace('http://', '', $link->link_url); |
| 139 | $short_url = str_replace('www.', '', $short_url); |
| 140 | if ('/' == substr($short_url, -1)) |
| 141 | $short_url = substr($short_url, 0, -1); |
| 142 | if (strlen($short_url) > 35) |
| 143 | $short_url = substr($short_url, 0, 32).'...'; |