WP_Background_Process::__construct()

Initiate new background process

Description

Source

File: bp-core/libraries/wp-background-process.php

57
58
59
60
61
62
63
64
65
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' ) );
}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.