Overview
  • Namespace
  • Class

Namespaces

  • None
  • WC_POS
    • Admin
      • Settings
        • Receipt
    • API
    • Gateways
    • Integrations
    • Products

Classes

  • Coupons
  • Customers
  • Gateways
  • i18n
  • Orders
  • Params
  • Payload
  • Products
  • Settings
  • Support
  • Templates

Class Settings

WC_API_Resource
Extended by WC_POS\API\Settings
Namespace: WC_POS\API
Located at api/settings.php

Methods summary

public array
# register_routes( array $routes )

Register routes for POS Settings

Register routes for POS Settings

GET /pos

Parameters

$routes

Returns

array
public array
# get_settings( string $id = '', null $wc_pos_admin = null, $defaults = false )

Parameters

$id
$wc_pos_admin
$defaults

Returns

array
public array|WP_Error
# edit_settings( string $id, $data )

Parameters

$id
$data

Returns

array|WP_Error

Throws

WC_API_Exception
public array|WP_Error
# delete_settings( string $id = '' )

Parameters

$id

Returns

array|WP_Error
public
# delete_all_settings( )

Delete all settings in WP options table

Delete all settings in WP options table

Properties summary

protected string $base
# '/pos/settings'
API documentation generated by ApiGen