WC_WCCOM_Site_Installation_Manager::get_installation_statuspublicWC 1.0

Get the installation status.

Method of the class: WC_WCCOM_Site_Installation_Manager{}

No Hooks.

Returns

WC_WCCOM_Site_Installation_State.

Usage

$WC_WCCOM_Site_Installation_Manager = new WC_WCCOM_Site_Installation_Manager();
$WC_WCCOM_Site_Installation_Manager->get_installation_status(): WC_WCCOM_Site_Installation_State;

WC_WCCOM_Site_Installation_Manager::get_installation_status() code WC 10.4.3

public function get_installation_status(): WC_WCCOM_Site_Installation_State {
	$state = WC_WCCOM_Site_Installation_State_Storage::get_state( $this->product_id );

	if ( ! $state ) {
		throw new Installer_Error( esc_html( Installer_Error_Codes::NO_INITIATED_INSTALLATION_FOUND ) );
	}

	return $state;
}