Standard author links in WordPress look like: example.com/author/johnsmith
example.com/author/johnsmith
I\'d like to remove the author/ part of the URL so the username
author/
Your code appears fine. Manually flush your permalink structure to reflect these changes.
1) Settings -> Permalinks -> choose default -> Save 2) Revert the settings to original.