Schedules the cron task for deleting incomplete submissions.
Description
See also
Source
File: src/db-objects/submissions/submission-manager.php
public function schedule_cron_task() { $settings = $this->get_parent_manager( 'forms' )->options()->get( 'general', array() ); if ( isset( $settings['delete_submissions'] ) && $settings['delete_submissions'] ) { if ( ! wp_next_scheduled( "{$this->get_prefix()}cron_maybe_delete_submissions" ) ) { wp_schedule_event( time(), 'twicedaily', "{$this->get_prefix()}cron_maybe_delete_submissions" ); } } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |