HM\BackUpWordPress\Backup_Status::get_status PHP Method

get_status() public method

Get the status of the running backup.
public get_status ( ) : string
return string
    public function get_status()
    {
        if (!file_exists($this->get_status_filepath())) {
            return '';
        }
        $status = json_decode(file_get_contents($this->get_status_filepath()));
        if (!empty($status->status)) {
            return $status->status;
        }
        return '';
    }