concept-image/wp-cron
最新稳定版本:2.1.2
Composer 安装命令:
composer require concept-image/wp-cron
包简介
Register cron jobs in WordPress
README 文档
README
Installation
You can install this package with Composer:
composer require concept-image/wp-cron
Publishing Assets
After installing the theme, you need to discover and publish the theme's assets using Acorn. Run the following command:
wp acorn vendor:publish --tag="wp-cron"
This command will publish the necessary assets to your theme's public directory.
Usage
Register an array of cron scheduled tasks in config/cron.php
- hook: scheduled hook for the event. E.G. 'scheduled_custom_event'
- callback: callback function for the event. E.G. 'custom_event' OR associative array with 'class' and 'method' E.G. 'App\Services\MyService', 'myMethod'
- recurrence: how often the event should subsequently recur E.G. 'daily'
Changelog
Please refer to CHANGELOG for more information.
Contributing
Please refer to CONTRIBUTING for more information.
License
Please refer to LICENSE for more information.
统计信息
- 总下载量: 154
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-19