WC_REST_WCCOM_Site_Installer_Controller::validate_products()
Метод класса: 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 REST WCCOM Site Installer Controller::validate products WC 8.7.0
woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php
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(