| @@ 231-241 (lines=11) @@ | ||
| 228 | * @param int $id (default: 0). |
|
| 229 | * @return bool |
|
| 230 | */ |
|
| 231 | public function get_order( $id = 0 ) { |
|
| 232 | _deprecated_function( 'get_order', '2.6', 'read' ); |
|
| 233 | if ( ! $id ) { |
|
| 234 | return false; |
|
| 235 | } |
|
| 236 | if ( $result = get_post( $id ) ) { |
|
| 237 | $this->populate( $result ); |
|
| 238 | return true; |
|
| 239 | } |
|
| 240 | return false; |
|
| 241 | } |
|
| 242 | ||
| 243 | /** |
|
| 244 | * Populates an order from the loaded post data. |
|
| @@ 117-127 (lines=11) @@ | ||
| 114 | * @param int $id (default: 0). |
|
| 115 | * @return bool |
|
| 116 | */ |
|
| 117 | public function get_refund( $id = 0 ) { |
|
| 118 | _deprecated_function( 'get_refund', '2.6', 'read' ); |
|
| 119 | if ( ! $id ) { |
|
| 120 | return false; |
|
| 121 | } |
|
| 122 | if ( $result = get_post( $id ) ) { |
|
| 123 | $this->populate( $result ); |
|
| 124 | return true; |
|
| 125 | } |
|
| 126 | return false; |
|
| 127 | } |
|
| 128 | } |
|
| 129 | ||