Hide Author Archive Wordpress Plugin - Rating, Reviews, Demo & Download

Hide Author Archive Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

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.

  1. No more ?author=1 redirection to /author/admin
  2. Ignore query var like author=1 or author_name=admin
  3. Hide user list in REST API from user without permission 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;
} );

Screenshots

No screenshots provided


Reviews & Comments