I hereby claim:
- I am kilbot on github.
- I am kilbot (https://keybase.io/kilbot) on keybase.
- I have a public key ASDfUhifa7YeloJAewiQxQS5_qB1BHOdL8ipzmgHcwE3ZAo
To claim this, I am signing this object:
| /** | |
| * Copyright (c) Facebook, Inc. and its affiliates. | |
| * | |
| * <p>This source code is licensed under the MIT license found in the LICENSE file in the root | |
| * directory of this source tree. | |
| */ | |
| package ***CHANGE_ME***; | |
| import android.content.Context; | |
| import com.facebook.flipper.android.AndroidFlipperClient; | 
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| // the code below goes in your theme's functions.php file | |
| function my_custom_pos_template_redirect() { | |
| $usd_store_id = 3365; | |
| $cad_store_id = 3366; | |
| $current_store_id = get_user_option('woocommerce_pos_store'); | |
| <?php | |
| // this goes in your theme functions.php file | |
| function my_custom_rest_dispatch_request($continue, $request, $route, $handler) | |
| { | |
| if (function_exists('is_pos') && is_pos() && $route == 'wc/v3/products') { | |
| $request->set_param('per_page', -1); | |
| $request->set_param('stock_status', 'instock'); | |
| } | 
| declare module '@nozbe/watermelondb' { | |
| import * as Q from '@nozbe/watermelondb/QueryDescription' | |
| export { default as Collection } from '@nozbe/watermelondb/Collection' | |
| export { default as Database } from '@nozbe/watermelondb/Database' | |
| export { default as CollectionMap } from '@nozbe/watermelondb/Database/CollectionMap' | |
| export { default as Relation } from '@nozbe/watermelondb/Relation' | |
| export { default as Model, associations } from '@nozbe/watermelondb/Model' | |
| export { default as Query } from '@nozbe/watermelondb/Query' | |
| export { tableName, columnName, appSchema, tableSchema } from '@nozbe/watermelondb/Schema' | 
| <?php | |
| // this goes in your theme functions.php file | |
| function force_gdpr_consent_for_woocommerce_pos() | |
| { | |
| if (function_exists('is_pos') && is_pos()) { | |
| $_POST['wpgdprc'] = true; | |
| } | |
| } | 
| <?php | |
| // this goes in your theme functions.php file | |
| function my_custom_wc_rest_shop_order_object($response) | |
| { | |
| if (function_exists('is_pos') && is_pos()) { | |
| $data = $response->get_data(); | |
| if (is_array($data['line_items'])) : foreach ($data['line_items'] as &$line_item) : | |
| if ($code = wc_get_order_item_meta($line_item['id'], '_ywgc_gift_card_number')) { | 
| <?php | |
| // place this in your theme functions.php file | |
| function my_custom_pos_shipping_labels($params){ | |
| $params['shipping'] = array( | |
| 'ex1' => 'Example 1', | |
| 'ex2' => 'Example 2' | |
| ); | |
| <?php | |
| function my_custom_rest_prepare_customer( $response ){ | |
| if( function_exists('is_pos') && is_pos() ) { | |
| $data = $response->get_data(); | |
| $data['meta_data'] = array(); // remove meta_data | |
| $response->set_data($data); | |
| } | |
| return $response; | |
| } | 
| <?php | |
| // place this in your theme functions.php file | |
| function my_custom_pos_tabs($params){ | |
| $params['tabs'] = array( | |
| 'all' => array( | |
| 'label' => __( 'All', 'woocommerce'), | |
| 'active' => true | |
| ), |