| @@ 526-536 (lines=11) @@ | ||
| 523 | * @param int $id (default: 0). |
|
| 524 | * @return bool |
|
| 525 | */ |
|
| 526 | public function get_order( $id = 0 ) { |
|
| 527 | _deprecated_function( 'get_order', '2.6', 'read' ); |
|
| 528 | if ( ! $id ) { |
|
| 529 | return false; |
|
| 530 | } |
|
| 531 | if ( $result = get_post( $id ) ) { |
|
| 532 | $this->populate( $result ); |
|
| 533 | return true; |
|
| 534 | } |
|
| 535 | return false; |
|
| 536 | } |
|
| 537 | ||
| 538 | /** |
|
| 539 | * Populates an order from the loaded post data. |
|
| @@ 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.6', '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 | ||