Manual talk:Hooks/HtmlPageLinkRendererBegin

Jump to navigation Jump to search

About this board

How to hide red links using this hook ?

1
Nicolas NALLET (talkcontribs)

I have tried this but it's not working

function hideRedLinks (LinkRenderer $linkRenderer, LinkTarget $target, &$text, &$extraAttribs, &$query, &$ret) {

if ( $target->exists() ) {

return true; }

else {

$ret = $html;

return false;

}

}

$wgHooks['HtmlPageLinkRendererBegin '][] = 'hideRedLinks';

Reply to "How to hide red links using this hook ?"
There are no older topics