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 |
|---|---|
| 118 | |
| 119 | <?php |
| 120 | $link_columns = array( |
| 121 | 'name' => '<th style="width: 15%;">' . __('Name') . '</th>', |
| 122 | 'url' => '<th>' . __('URL') . '</th>', |
| 123 | 'categories' => '<th>' . __('Categories') . '</th>', |
| 124 | 'rel' => '<th style="text-align: center">' . __('rel') . '</th>', |
| 125 | 'visible' => '<th style="text-align: center">' . __('Visible') . '</th>', |
| 126 | ); |
| 127 | $link_columns = apply_filters('manage_link_columns', $link_columns); |
| 128 | ?> |
| 129 | |
| 130 | <?php |
| 131 | if ( 'all' == $cat_id ) |
| 132 | $cat_id = ''; |
| 133 | $args = array('category' => $cat_id, 'hide_invisible' => 0, 'orderby' => $sqlorderby, 'hide_empty' => 0); |
| 134 | if ( !empty($_GET['s']) ) |
| 135 | $args['search'] = $_GET['s']; |
| 136 | $links = get_bookmarks( $args ); |