Este plugin não foi testado com as 3 últimas grandes versões do WordPress. Pode já não ser suportado e pode ter problemas de compatibilidade quando usado com versões mais recentes do WordPress.

Hide Author Archive

Descrição

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;
} );

Instalação

Search “hide author archives” in admin screen.
Altenatively, you can install it manually like below:

  1. Upload hide-author-archive folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Perguntas frequentes

How To Contribute

We host plugin on github and any issues and pull requests are welcomed!

Avaliações

25 Fevereiro, 2021 1 reply
After activating this plugin, the author archive lands on a 404 page. I was looking for this functionality, because on many websites, there isn't a need for author archives. Tested with WordPress 5.6.2
Ler 1 avaliação

Contribuidores e programadores

“Hide Author Archive” é software de código aberto. As seguintes pessoas contribuíram para este plugin:

Contribuidores

“Hide Author Archive” foi traduzido para 1 locale. Obrigado aos tradutores pelas suas contribuições.

Traduza o “Hide Author Archive” para o seu idioma.

Interessado no desenvolvimento?

Consulte o código, consulte o repositório SVN, ou subscreva o registo de alterações por RSS.

Registo de alterações

1.1.5

  • Hide single REST API for single user get wp/v2/users/1.
  • Editor can see REST API users get to change author of posts.

1.1.1

  • Support REST API.
  • Fix coding standards.

1.0.0

  • First release