Warning: This method has been deprecated.
WC_Order_Refund::get_refund( int $id )
Gets an refund from the database.
Description Description
Parameters Parameters
- $id
-
(Required) (default: 0).
Return Return
(bool)
Source Source
File: includes/class-wc-order-refund.php
public function get_refund( $id = 0 ) { wc_deprecated_function( 'get_refund', '3.0', 'read' ); if ( ! $id ) { return false; } $result = get_post( $id ); if ( $result ) { $this->populate( $result ); return true; } return false; }
Changelog Changelog
Version | Description |
---|---|
3.0 | Introduced. |