Skip to content

Commit

Permalink
Add default customer to store data
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Apr 23, 2023
1 parent 0251d96 commit 64dfed0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/API/Stores.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public function get_store(): array {
'locale' => get_locale(),
),
array(
/**
* Get POS Settings
*/
'default_customer' => woocommerce_pos_get_settings( 'general', 'default_customer' ),
'default_customer_is_cashier' => woocommerce_pos_get_settings( 'general', 'default_customer_is_cashier' ),
/**
* Get the General settings from WooCommerce
*/
Expand Down

0 comments on commit 64dfed0

Please sign in to comment.