| @@ 180-190 (lines=11) @@ | ||
| 177 | * @param int $id (default: 0). |
|
| 178 | * @return bool |
|
| 179 | */ |
|
| 180 | public function get_refund( $id = 0 ) { |
|
| 181 | _deprecated_function( 'get_refund', '2.7', 'read' ); |
|
| 182 | if ( ! $id ) { |
|
| 183 | return false; |
|
| 184 | } |
|
| 185 | if ( $result = get_post( $id ) ) { |
|
| 186 | $this->populate( $result ); |
|
| 187 | return true; |
|
| 188 | } |
|
| 189 | return false; |
|
| 190 | } |
|
| 191 | } |
|
| 192 | ||
| @@ 533-543 (lines=11) @@ | ||
| 530 | * @param int $id (default: 0). |
|
| 531 | * @return bool |
|
| 532 | */ |
|
| 533 | public function get_order( $id = 0 ) { |
|
| 534 | _deprecated_function( 'get_order', '2.7', 'read' ); |
|
| 535 | if ( ! $id ) { |
|
| 536 | return false; |
|
| 537 | } |
|
| 538 | if ( $result = get_post( $id ) ) { |
|
| 539 | $this->populate( $result ); |
|
| 540 | return true; |
|
| 541 | } |
|
| 542 | return false; |
|
| 543 | } |
|
| 544 | ||
| 545 | /** |
|
| 546 | * Populates an order from the loaded post data. |
|