Welcome, visitor! Log in
 

Source View: manage_link_columns

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN  (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
112  </div>
113  
114  <br class="clear" />
115  </div>
116  
117  <br class="clear" />
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 );
137  if ( $links ) {
138  ?>
139  
140  <?php wp_nonce_field('bulk-bookmarks') ?>
141  <table class="widefat">
142       <thead>