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
Requires
- php: >=8.0
Requires (Dev)
- wp-coding-standards/wpcs: ^3.0
This package is not auto-updated.
Last update: 2026-01-14 17:43:57 UTC
README
Installation
Via Composer
composer require wvnderlab-agency/wp-disable-author-pages
Via FTP
- Download the repository zip file.
- Unzip the file.
- Upload the unzipped folder to the
/wp-content/mupluginsor/wp-content/plugins/directory on your server. - Navigate to the 'Plugins' section in your WordPress admin dashboard.
- Find 'Disable Author Pages' in the list and click 'Activate'.
Via WordPress Admin Dashboard
- Download the repository zip file.
- Navigate to the 'Plugins' section in your WordPress admin dashboard.
- Click 'Add New' and then 'Upload Plugin'.
- Choose the downloaded zip file and click 'Install Now'.
- 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