WordPress at Your Fingertips
function is not described

WC_REST_WCCOM_Site_Installer_Controller::reset_install() public WC 3.7.0

Reset 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->reset_install( $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::reset_install() WC 5.8.0

public function reset_install( $request ) {
	$resp = rest_ensure_response( WC_WCCOM_Site_Installer::reset_state() );
	$resp->set_status( 204 );

	return $resp;
}