Skip to content
linchpin edited this page Feb 22, 2023 · 10 revisions

Cron

Cron Class

  • Full name: \CourierNotices\Controller\Cron

Methods

register_actions

Courier_Cron constructor.

public register_actions(): mixed

init

Add our events for expiring notices

public init(): mixed

add_courier_cron_interval

Add new schedules for the cron to run every 5 minutes

public add_courier_cron_interval(array $schedules): mixed

Parameters:

Parameter Type Description
$schedules array Cron Schedules

courier_purge

Delete Courier notices that are older than 6 months.

public courier_purge(): mixed

courier_expire

Expire notices if their expiration date has passed.

public courier_expire(): mixed


Automatically generated from source code comments on 2023-02-22 using phpDocumentor and saggre/phpdocumentor-markdown