| @@ 198-208 (lines=11) @@ | ||
| 195 | * @param int $id (default: 0). |
|
| 196 | * @return bool |
|
| 197 | */ |
|
| 198 | public function get_refund( $id = 0 ) { |
|
| 199 | _deprecated_function( 'get_refund', '2.7', 'read' ); |
|
| 200 | if ( ! $id ) { |
|
| 201 | return false; |
|
| 202 | } |
|
| 203 | if ( $result = get_post( $id ) ) { |
|
| 204 | $this->populate( $result ); |
|
| 205 | return true; |
|
| 206 | } |
|
| 207 | return false; |
|
| 208 | } |
|
| 209 | ||
| 210 | /** |
|
| 211 | * Get refund amount. |
|
| @@ 591-601 (lines=11) @@ | ||
| 588 | * @param int $id (default: 0). |
|
| 589 | * @return bool |
|
| 590 | */ |
|
| 591 | public function get_order( $id = 0 ) { |
|
| 592 | _deprecated_function( 'get_order', '2.7', 'read' ); |
|
| 593 | if ( ! $id ) { |
|
| 594 | return false; |
|
| 595 | } |
|
| 596 | if ( $result = get_post( $id ) ) { |
|
| 597 | $this->populate( $result ); |
|
| 598 | return true; |
|
| 599 | } |
|
| 600 | return false; |
|
| 601 | } |
|
| 602 | ||
| 603 | /** |
|
| 604 | * Populates an order from the loaded post data. |
|