Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

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.

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