[wp-hackers] Hook-enized bookmarks?

Roland Haeder webmaster at mxchange.org
Fri Oct 13 13:07:23 GMT 2006

Might it be a good idea to make the bookmark links (wp_links) "hook-able"?

This will give plug-in developers the possibility to modify the links. For 
example the wp_ozh_click_counter and dofollow plugin may benefit from it.

It is a very small and simple hack:

For WP 2.0.4:
- Open wp-includes/links.php
- Search for "function get_links("
- Continue seach for "} // end while"
- After it add this: $output = apply_filters('wp_links', $output);

Surely both searches without the quotes.

I'm just asking this here. Not giving you a patch.


(GNU) PGP ID: 0x8C8859B9


More information about the wp-hackers mailing list