Welcome, visitor! Log in
 

Source View: link_rating

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
369             $result->link_description = $result->link_description;
370             $result->link_notes       = $result->link_notes;
371             $newresults[] = $result;
372         }
373     }
374     return $newresults;
375 }
376
377 function get_linkrating($link) {
378     return apply_filters('link_rating', $link->link_rating);
379 }
380
381
382 /** function get_linksbyname_withrating()
383  ** Gets the links associated with category 'cat_name' and display rating stars/chars.
384  ** Parameters:
385  **   cat_name (default 'noname')  - The category name to use. If no
386  **     match is found uses all
387  **   before (default '')  - the html to output before the link