Automattic\WP\Cron_Control\Events::class_init PHP Method

class_init() protected method

Register hooks
protected class_init ( )
    protected function class_init()
    {
        // Prime lock cache if not present
        Lock::prime_lock(self::LOCK);
        // Prepare environment as early as possible
        $earliest_action = did_action('muplugins_loaded') ? 'plugins_loaded' : 'muplugins_loaded';
        add_action($earliest_action, array($this, 'prepare_environment'));
    }