WordPress at Your Fingertips
function is not described

WC_Order_Item::set_name() public WC 1.0

Set order item name.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Order_Item = new WC_Order_Item();
$WC_Order_Item->set_name( $value );
$value(string) (required)
Item name.

Code of WC_Order_Item::set_name() WC 5.7.1

public function set_name( $value ) {
	$this->set_prop( 'name', wp_check_invalid_utf8( $value ) );
}