Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / includes/legacy/api/v1/class-wc-api-server.php

WC_API_Server::is_xml_request()

Method: Check if the current request accepts an XML response by checking the endpoint suffix (.xml) or the HTTP ACCEPT header

Source: includes/legacy/api/v1/class-wc-api-server.php:768

Used by 1 function | Uses 0 functions

WC_API_Server::is_json_request()

Method: Check if the current request accepts a JSON response by checking the endpoint suffix (.json) or the HTTP ACCEPT header

Source: includes/legacy/api/v1/class-wc-api-server.php:746

Used by 1 function | Uses 0 functions
Proudly powered by WordPress