Automattic\WooCommerce\Internal\Abilities\Domain
ProductUpdate::prepare_response
The ability output for the saved product.
Метод класса: ProductUpdate{}
Хуков нет.
Возвращает
array.
Использование
$ProductUpdate = new ProductUpdate(); $ProductUpdate->prepare_response( $subject ): array;
- $subject(WC_Product) (обязательный)
- Saved product.
Код ProductUpdate::prepare_response() ProductUpdate::prepare response WC 11.3.0
public function prepare_response( $subject ): array {
return array(
'product' => self::format_product_for_response( $subject ),
);
}