Re: Editing a function in a plugin – add_action or add_filter
Thanx.
I do not know if I’ve did it right but it does not works. Am I doing something wrong?
The new $link should be
$link = bb_get_option(‘uri’) . “$forum->forum_name” . ( 1 < $page ? “/page/$page” : ” );
it all should look like:
function my_get_forum_link_filter( $link ) {
$link = bb_get_option(‘uri’) . “$forum->forum_name” . ( 1 < $page ? “/page/$page” : ” );; // Whatever you want to do with the link
return $link; // Very important line!
}
add_filter( ‘get_forum_link’, ‘my_get_forum_link_filter’ );