Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: pre_link_name

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.

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
302      $update = false;
303
304      if ( !empty($link_id) )
305           $update = true;
306
307      $link_id = (int) $link_id;
308
309      if( trim( $link_name ) == '' )
310           return 0;
311      $link_name = apply_filters('pre_link_name', $link_name);
312
313      if( trim( $link_url ) == '' )
314           return 0;
315      $link_url = apply_filters('pre_link_url', $link_url);
316
317      if ( empty($link_rating) )
318           $link_rating = 0;
319      else
320           $link_rating = (int) $link_rating;