wvnderlab-agency/wp-disable-date-based-archives
Composer 安装命令:
composer require wvnderlab-agency/wp-disable-date-based-archives
包简介
A simple WordPress mu-plugin to disable date based archives.
README 文档
README
Installation
Via Composer
composer require wvnderlab-agency/wp-disable-date-based-archives
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 posts' 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-date-based-archives/enabled (Default: true)
This filter allows you to disable the plugin functionality.
// disable the plugin functionality add_filter( 'wvnderlab/disable-date-based-archives/enabled', '__return_false' );
wvnderlab/disable-date-based-archives/status-code (Default: 404)
This filter allows you to set the HTTP status code returned when posts 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-date-based-archives/status-code', fn() => 301 ); // set the status code to 302 - Found add_filter( 'wvnderlab/disable-date-based-archives/status-code', fn() => 302 ); // set the status code to 307 - Temporary Redirect add_filter( 'wvnderlab/disable-date-based-archives/status-code', fn() => 307 ); // set the status code to 308 - Permanent Redirect add_filter( 'wvnderlab/disable-date-based-archives/status-code', fn() => 308 ); // set the status code to 410 - Gone add_filter( 'wvnderlab/disable-date-based-archives/status-code', fn() => 410 );
wvnderlab/disable-date-based-archives/redirect-url (Default: home_url())
This filter allows you to override the redirect URL when posts are disabled and the wvnderlab/disable-date-based-archives/status-code filter is set to use a redirect status code (e.g., 301 or 302).
// override the redirect URL add_filter( 'wvnderlab/disable-date-based-archives/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
wvnderlab-agency/wp-disable-date-based-archives 适用场景与选型建议
wvnderlab-agency/wp-disable-date-based-archives 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 04 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「wordpress-plugin」 「wordpress-muplugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 wvnderlab-agency/wp-disable-date-based-archives 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wvnderlab-agency/wp-disable-date-based-archives 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 wvnderlab-agency/wp-disable-date-based-archives 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Gutenberg like color palette field for ACF.
WordPress Plugin Framework
Helper class that lets you create options settings page securely and swiftly without dealing with WordPress Settings API.
This composer plugin sets installation paths for WordPress core, plugins, mu-plugins, themes and drop-ins outside of vendor directory.
Packages to improve or extend the editing experience within the WordPress Site Editor (called Gutenberg for a long time) for all sites of the figuren.theater multisite network.
All you need, if you run a theater or a WordPress Multisite network for puppeteers like figuren.theater.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-30