WC_REST_WCCOM_Site_Installer_Controller::validate_products()publicWC 1.0

Метод класса: WC_REST_WCCOM_Site_Installer_Controller{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_REST_WCCOM_Site_Installer_Controller = new WC_REST_WCCOM_Site_Installer_Controller();
$WC_REST_WCCOM_Site_Installer_Controller->array(;

Список изменений

С версии 3.7.0 Введена.

Код WC_REST_WCCOM_Site_Installer_Controller::validate_products() WC 8.7.0

array(
	'success'       => false,
	'error_code'    => $exception->get_error_code(),
	'error_message' => $exception->get_error_message(),
	'state'         => $state ? $this->map_state_to_response( $state ) : null,
)
		);
		$response->set_status( $exception->get_http_code() );
		return $response;
	}

	/**
	 * Map the installation state to a response.
	 *
	 * @param WC_WCCOM_Site_Installation_State $state The installation state.
	 * @return array
	 */
	protected function map_state_to_response( $state ) {
		return array(