Cron API (category)

do_enclose()

Checks the specified post for links to Video and Audio in its content. If links are found, it adds these URLs to the meta-fields enclosure.

wp_clear_scheduled_hook()

Deletes all cron jobs attached to the specified hook and having the specified parameters. Works based on wp_unschedule_event().

wp_cron()

Run all scheduled cron events whose time has come.

wp_doing_cron()

Determines whether the current request is a request to Cron. Conditional tag.

wp_get_scheduled_event()

Gets the scheduled wp-cron task - the data of the specified task in the form of an object.

wp_get_schedules()

Gets the supported Cron time intervals.

wp_next_scheduled()

Returns the timestamp when the next scheduled cron job is supposed to run. Allows checking if the specified job is in the cron.

wp_schedule_event()

Creates a recurring cron job. Sets a hook that will be called every time after the specified interval of time.

wp_schedule_single_event()

Creates a one-time cron job. Sets a hook that will be called only once at the specified time.

wp_unschedule_event()

Deletes the specified cron action from the schedule. To delete, you need to specify all the data: timestamp, hook name, and parameters.

wp_unschedule_hook()

Deletes all cron tasks from the schedule for the specified hook. It does not matter what parameters were specified when registering the task.