piotrpress/wordpress-link-checker
最新稳定版本:v1.1.1
Composer 安装命令:
composer create-project piotrpress/wordpress-link-checker
包简介
WordPress Link Checker is a command line tool that checks for broken links on a WordPress website.
README 文档
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.
Requirements
License
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-06