| @@ 499-509 (lines=11) @@ | ||
| 496 | * @param int $id (default: 0). |
|
| 497 | * @return bool |
|
| 498 | */ |
|
| 499 | public function get_order( $id = 0 ) { |
|
| 500 | _deprecated_function( 'get_order', '2.7', 'read' ); |
|
| 501 | if ( ! $id ) { |
|
| 502 | return false; |
|
| 503 | } |
|
| 504 | if ( $result = get_post( $id ) ) { |
|
| 505 | $this->populate( $result ); |
|
| 506 | return true; |
|
| 507 | } |
|
| 508 | return false; |
|
| 509 | } |
|
| 510 | ||
| 511 | /** |
|
| 512 | * Populates an order from the loaded post data. |
|
| @@ 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. |
|