WC_Order_Item_Shipping::set_method_title()
Set method title.
Method of the class: WC_Order_Item_Shipping{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Order_Item_Shipping = new WC_Order_Item_Shipping(); $WC_Order_Item_Shipping->set_method_title( $value );
- $value(string) (required)
- Value to set.
WC_Order_Item_Shipping::set_method_title() WC Order Item Shipping::set method title code WC 9.4.2
public function set_method_title( $value ) { $this->set_prop( 'name', wc_clean( $value ) ); $this->set_prop( 'method_title', wc_clean( $value ) ); }