You’ll need to add a rewrite rule as well as the filter you have written. At the moment your filter only changes what is output when the author_link
function is called, not WordPress’ permalink structure.
You’ll need to add a rewrite rule as well as the filter you have written. At the moment your filter only changes what is output when the author_link
function is called, not WordPress’ permalink structure.