WordPress at Your Fingertips
function is not described

WC_REST_WCCOM_Site_Installer_Controller::get_install_state() public WC 3.7.0

Get installation state.

{} It's a method of the class: WC_REST_WCCOM_Site_Installer_Controller{}

No Hooks.

Return

true|false|WP_Error.

Usage

$WC_REST_WCCOM_Site_Installer_Controller = new WC_REST_WCCOM_Site_Installer_Controller();
$WC_REST_WCCOM_Site_Installer_Controller->get_install_state( $request );
$request(WP_REST_Request) (required)
Full details about the request.

Changelog

Since 3.7.0 Introduced.

Code of WC_REST_WCCOM_Site_Installer_Controller::get_install_state() WC 5.7.1

public function get_install_state( $request ) {
	$requirements_met = WC_WCCOM_Site_Installer_Requirements_Check::met_requirements();
	if ( is_wp_error( $requirements_met ) ) {
		return $requirements_met;
	}

	return rest_ensure_response( WC_WCCOM_Site_Installer::get_state() );
}