@@ 1328-1330 (lines=3) @@ | ||
1325 | */ |
|
1326 | public function create_order_note( $order_id, $data ) { |
|
1327 | try { |
|
1328 | if ( ! isset( $data['order_note'] ) ) { |
|
1329 | throw new WC_API_Exception( 'woocommerce_api_missing_order_note_data', sprintf( __( 'No %1$s data specified to create %1$s', 'woocommerce' ), 'order_note' ), 400 ); |
|
1330 | } |
|
1331 | ||
1332 | $data = $data['order_note']; |
|
1333 | ||
@@ 1385-1387 (lines=3) @@ | ||
1382 | */ |
|
1383 | public function edit_order_note( $order_id, $id, $data ) { |
|
1384 | try { |
|
1385 | if ( ! isset( $data['order_note'] ) ) { |
|
1386 | throw new WC_API_Exception( 'woocommerce_api_missing_order_note_data', sprintf( __( 'No %1$s data specified to edit %1$s', 'woocommerce' ), 'order_note' ), 400 ); |
|
1387 | } |
|
1388 | ||
1389 | $data = $data['order_note']; |
|
1390 |