WordPress at Your Fingertips
function is not described

WC_Product::set_purchase_note() public WC 3.0.0

Set purchase note.

{} It's a method of the class: WC_Product{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Product = new WC_Product();
$WC_Product->set_purchase_note( $purchase_note );
$purchase_note(string) (required)
Purchase note.

Changelog

Since 3.0.0 Introduced.

Code of WC_Product::set_purchase_note() WC 5.5.2

<?php
public function set_purchase_note( $purchase_note ) {
	$this->set_prop( 'purchase_note', $purchase_note );
}