Hide author archive of WordPress.
This plugin will hide author’s archive.
If your don’t need author parameter, this plugin may enhance your site’s security from bot inspection.
?author=1
redirection to /author/admin
author=1
or author_name=admin
list_users
or edit_others_posts
. This capability is filterable./** * Filter capabilities to see author list. * * @param string[] $caps List of capabilities. */ add_filter( 'hide_author_archive_rest_query_capability', function( $caps ) { $caps[] = 'read'; return $caps; } );
Search “hide author archives” in admin screen.
Altenatively, you can install it manually like below:
hide-author-archive
folder to the /wp-content/plugins/
directoryWe host plugin on github and any issues and pull requests are welcomed!
wp/v2/users/1
.