concept-image / wp-cron
Register cron jobs in WordPress
2.1.1
2025-03-25 12:04 UTC
Requires
- php: >=8.0
- roots/acorn: >=4.3
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'
- 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.