wvnderlab-agency/wp-disable-author-pages

A simple WordPress mu-plugin to disable author pages.

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

Type:wordpress-muplugin

pkg:composer/wvnderlab-agency/wp-disable-author-pages

0.1.1 2026-01-14 11:05 UTC

This package is not auto-updated.

Last update: 2026-01-14 17:43:57 UTC


README

PHP WordPress WP Coding Standards

Installation

Via Composer

composer require wvnderlab-agency/wp-disable-author-pages

Via FTP

  1. Download the repository zip file.
  2. Unzip the file.
  3. Upload the unzipped folder to the /wp-content/muplugins or /wp-content/plugins/ directory on your server.
  4. Navigate to the 'Plugins' section in your WordPress admin dashboard.
  5. Find 'Disable Author Pages' in the list and click 'Activate'.

Via WordPress Admin Dashboard

  1. Download the repository zip file.
  2. Navigate to the 'Plugins' section in your WordPress admin dashboard.
  3. Click 'Add New' and then 'Upload Plugin'.
  4. Choose the downloaded zip file and click 'Install Now'.
  5. After installation, click 'Activate Plugin'.

Usage

Filter Hooks

wvnderlab/disable-author-pages/enabled (Default: true)

This filter allows you to disable the plugin functionality.

// disable the plugin functionality
add_filter( 'wvnderlab/disable-author-pages/enabled', '__return_false' );

wvnderlab/disable-author-pages/status-code (Default: 404)

This filter allows you to set the HTTP status code returned when author pages are disabled.

You can set it to standard codes like 404 (Not Found), 410 (Gone), or redirect codes like 301 (Moved Permanently) or 302 (Found).

// set the status code to 301 - Moved Permanently
add_filter( 'wvnderlab/disable-author-pages/status-code', fn() => 301 );
// set the status code to 302 - Found
add_filter( 'wvnderlab/disable-author-pages/status-code', fn() => 302 );
// set the status code to 307 - Temporary Redirect
add_filter( 'wvnderlab/disable-author-pages/status-code', fn() => 307 );
// set the status code to 308 - Permanent Redirect
add_filter( 'wvnderlab/disable-author-pages/status-code', fn() => 308 );
// set the status code to 410 - Gone
add_filter( 'wvnderlab/disable-author-pages/status-code', fn() => 410 );

wvnderlab/disable-author-pages/redirect-url (Default: home_url())

This filter allows you to override the redirect URL when author-pages are disabled and the wvnderlab/disable-author-pages/status-code filter is set to use a redirect status code (e.g., 301 or 302).

// override the redirect URL
add_filter( 'wvnderlab/disable-author-pages/redirect_url', 'YOUR_REDIRECT_URL' );

Development

Install Dependencies

composer install

Analyse Code-Quality with WP-Coding-Standards

composer analyze

Refactor Code along WP-Coding-Standards

composer refactor