piotrpress / wordpress-link-checker
WordPress Link Checker is a command line tool that checks for broken links on a WordPress website.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
pkg:composer/piotrpress/wordpress-link-checker
Requires
- guzzlehttp/guzzle: 7.9.2
- symfony/console: 7.2.1
This package is auto-updated.
Last update: 2025-11-23 10:45:31 UTC
README
WordPress Link Checker is a command line tool that checks for broken links on a WordPress website.
Example
$ php wp-check https://example.com --user-agent=WordPressLinkChecker/1.1.1 --exclude-type=post --exclude-post=https://example.com/sample-page
Setup
$ docker compose up -d $ docker compose exec php bash -c "composer install" $ docker compose down
Usage
$ docker compose up -d $ docker compose exec php bash -c "php wp-check <url> [--user-agent=<user-agent>] [--exclude-type=<post-type>] ... [--exclude-post=<post-link>] ..." $ docker compose down
Parameters
The <url> argument is the URL of the WordPress website to check for broken links.
NOTE: URL can include the authentication credentials in the form: https://user:password@example.com.
--user-agent- option is used to set a custom user agent for the requests.--exclude-type- option is used to exclude post types by slug from the check.--exclude-post- option is used to exclude posts by URL from the check.
Changelog
Version 1.1.1
- Few minor improvements.
Version 1.1.0
- Added
--user-agentparameter to set a custom user agent for requests. - Added support for WordPress Multisite installations in subdirectory mode.
Version 1.0.0
- Initial release.