定制 piotrpress/wordpress-link-checker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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-agent parameter 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

MIT

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-06