WC_Order_Refund_Data_Store_CPT::updatepublicWC 1.0

Method to update a refund in the database.

Method of the class: WC_Order_Refund_Data_Store_CPT{}

Hooks from the method

Returns

null. Nothing (null).

Usage

$WC_Order_Refund_Data_Store_CPT = new WC_Order_Refund_Data_Store_CPT();
$WC_Order_Refund_Data_Store_CPT->update( $refund );
$refund(WC_Order_Refund) (required) (passed by reference — &)
Refund object.

WC_Order_Refund_Data_Store_CPT::update() code WC 10.5.0

public function update( &$refund ) {
	parent::update( $refund );

	/**
	 * Fires when an order refund is updated.
	 *
	 * @since 10.4.0
	 *
	 * @param int              $refund_id The order refund ID.
	 * @param \WC_Order_Refund $refund    The order refund object.
	 */
	do_action( 'woocommerce_update_order_refund', $refund->get_id(), $refund );
}