WC_REST_WCCOM_Site_Installer_Controller::validate_products()
Method of the class: WC_REST_WCCOM_Site_Installer_Controller{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_REST_WCCOM_Site_Installer_Controller = new WC_REST_WCCOM_Site_Installer_Controller(); $WC_REST_WCCOM_Site_Installer_Controller->array(;
Changelog
Since 3.7.0 | Introduced. |
WC_REST_WCCOM_Site_Installer_Controller::validate_products() WC REST WCCOM Site Installer Controller::validate products code 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(