xwp/scheduled-redirects 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

xwp/scheduled-redirects

Composer 安装命令:

composer require xwp/scheduled-redirects

包简介

Schedule activation/deactivation of Redirection Plugin redirects with WPVIP cache purging

README 文档

README

CI PHP Version WordPress Version

A WordPress plugin that adds scheduled activation/deactivation functionality to the Redirection Plugin, with automatic WPVIP cache purging.

Developed by XWP

Requirements

  • WordPress 6.5+
  • PHP 8.4+
  • Redirection Plugin 5.6+
  • Action Scheduler 3.8+ (bundled via Composer)

Installation

Composer (Recommended)

composer require xwp/scheduled-redirects

Manual

  1. Run composer install --no-dev
  2. Upload to /wp-content/plugins/
  3. Activate Redirection plugin
  4. Activate Scheduled Redirects

Usage

Navigate to Tools > Scheduled Redirects to:

  • Set scheduled start/end dates for redirects
  • Create new redirects with schedules
  • View status: Active, Inactive, Scheduled, On Schedule, Expired

Key Features

  • Scheduled Activation - Set a future date/time for redirects to automatically enable
  • Scheduled Deactivation - Set an end date/time for redirects to automatically disable
  • Automatic Cache Purging - WPVIP edge cache is automatically purged when redirect status changes
  • Reliable Scheduling - Uses Action Scheduler for dependable background processing
  • Simple Interface - Clean admin UI under Tools menu with search and filtering
  • Create New Redirects - Add new redirects with schedules directly from the plugin
  • Status Indicators - Visual badges showing Active, Inactive, Scheduled, On Schedule, and Expired states

Use Cases

  • Seasonal Campaigns - Schedule redirects for holiday promotions that automatically start and end
  • Product Launches - Set up redirects to go live exactly when a product launches
  • Temporary Redirects - Create time-limited redirects that automatically expire
  • Content Migrations - Schedule URL changes to coincide with content updates
  • A/B Testing - Rotate landing pages on a schedule

How It Works

  1. The plugin adds scheduling fields to each redirect in the Redirection Plugin
  2. When you set a start date, the redirect is disabled until that time
  3. Action Scheduler triggers the activation at the scheduled time
  4. When the end date arrives, the redirect is automatically disabled
  5. WPVIP cache is purged automatically to ensure changes take effect immediately

WPVIP Compatibility

This plugin is fully compatible with WordPress VIP environments:

  • Automatically purges WPVIP edge cache when redirects change status
  • Uses VIP-approved coding standards and practices

Development

Setup

composer install
pnpm install --ignore-workspace
pnpm start

Testing

pnpm test:php          # Run tests
composer lint          # Check standards
composer phpstan       # Static analysis
composer lint:fix      # Auto-fix issues

Local Environment

CI/CD

GitHub Actions runs:

  • PHPCS (WordPress-VIP-Go)
  • PHPStan Level 5
  • PHPUnit tests

Hooks

// Actions
do_action( 'scheduled_redirects_enabled', $redirect_id, $redirect );
do_action( 'scheduled_redirects_disabled', $redirect_id, $redirect );
do_action( 'scheduled_redirects_cache_purged', $redirect_id, $redirect, $action, $urls_to_purge );

// Filters
add_filter( 'scheduled_redirects_per_page', fn( $per_page ) => 50 );
add_filter( 'scheduled_redirects_purge_urls', fn( $urls, $redirect_id, $redirect ) => $urls, 10, 3 );

Privacy

Scheduled Redirects does not collect, store, or transmit any personal data. All schedule data is stored locally in your WordPress database.

Credits

Developed by XWP for WordPress VIP environments.

This plugin integrates with:

License

GPL v2 or later

xwp/scheduled-redirects 适用场景与选型建议

xwp/scheduled-redirects 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 10 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 xwp/scheduled-redirects 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 xwp/scheduled-redirects 我们能提供哪些服务?
定制开发 / 二次开发

基于 xwp/scheduled-redirects 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-02-10