Denne utvidelsen har ikke blitt testet mot noen av de siste 3 hovedutgivelsene av WordPress. Den er kanskje ikke lenger holdt vedlike eller støttet, og den kan ha kompatibilitetsproblemer med nyeste versjoner av WordPress.

Hide Author Archive

Beskrivelse

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

Installasjon

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

FAQ

How To Contribute

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

Vurderinger

25. februar, 2021 1 svar
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
Les 1 vurdering

Bidragsytere og utviklere

“Hide Author Archive” er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen.

Bidragsytere

“Hide Author Archive” har blitt oversatt til 1 språk. Takk til oversetterne for deres bidrag.

Oversett “Hide Author Archive” til ditt språk.

Interessert i utvikling?

Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.

Endringslogg

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