Astra_WP_Background_Process::__construct()

Initiate new background process


Description


Source

File: inc/lib/batch-processing/class-astra-wp-background-process.php

		public function __construct() {
			parent::__construct();

			$this->cron_hook_identifier     = $this->identifier . '_cron';
			$this->cron_interval_identifier = $this->identifier . '_cron_interval';

			add_action( $this->cron_hook_identifier, array( $this, 'handle_cron_healthcheck' ) );
			add_filter( 'cron_schedules', array( $this, 'schedule_cron_healthcheck' ) );
		}


User Contributed Notes

You must log in before being able to contribute a note or feedback.