Automattic\WooCommerce\Internal\Abilities\Domain

ProductCreate::prepare_response │ public │ WC 1.0

The ability output for the saved product.

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

Хуков нет.

Возвращает

array.

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

$ProductCreate = new ProductCreate();
$ProductCreate->prepare_response( $subject ): array;
$subject(WC_Product) (обязательный)
Saved product.

Код ProductCreate::prepare_response() WC 11.3.0

public function prepare_response( $subject ): array {
	return array(
		'product' => self::format_product_for_response( $subject ),
	);
}