定制 concept-image/wp-cron 二次开发

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

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

concept-image/wp-cron

最新稳定版本:2.1.4

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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-19