Notice: Functie register_rest_route werd verkeerd aangeroepen. In de REST API route definitie voor simplybook/is-authorized ontbreekt het vereiste permission_callback argument. Voor REST API routes die bedoeld zijn openbaar te zijn, gebruik __return_true als de toestemming callback. Lees Foutopsporing in WordPress voor meer informatie. (Dit bericht is toegevoegd in versie 5.5.0.) in /public_html/wp-includes/functions.php on line 6085
Translation:
Notice: Function register_rest_route was called incorrectly. The REST API route definition for simplybook/is-authorized is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Read Error detection in WordPress for more information. (This post was added in version 5.5.0.) in /public_html/wp-includes/functions.php on line 6085
Not a breaking bug, but just wanted to let you know. Thank you!
]]>I am using LiteSpeed Cache along with WooFood plugin https://www.wpslash.com/plugin/woofood-food-delivery-plugin/ which I must disable caching on Rest API for Automatic Order Printing to work properly .
Can you add a permanent rule to wp-json/woofood/* for caching to be excluded
]]>Thanks!
]]>we’ve build a multilanguage site and the tracking doesn’t work for all languages except the main language (german). The plugin tries to call the rest url with the language appended, which returns the 404 page.
Here’s the url for one of the languages:
https://mydomain.dev/en/wp-json/burst/v1/track/?token=dmiketo&_locale=user
How can we avoid this?
Thanks and kind regards!
]]>I am having issues trying to set the product, when uploaded or amended via a woocommerce REST API , to accept backorders or notify at those.
e. g.
curl –location ‘https://domain.com/wp-json/wc/v3/products’ \
–header ‘Content-Type: multipart/form-data’ \
–header ‘Authorization: Basic key’ \
–form ‘name=”Example product”‘ \
–form ‘stock_quantity=”2″‘ \
–form ‘stock_status=”instock”‘ \
–form ‘backorders=”yes”‘
The default action is that it does not and it is not to be altered by successive PUT request. According to the output from the API, none distinct from “yes”, “no” ,”notify” is accepted. How should I put this parameter?
This is the cutout of what I receive from the API:
“manage_stock”: true,
“stock_quantity”: 0,
“backorders”: “no”,
“backorders_allowed”: false,
“backordered”: false,
Any help would be much appreciated.
]]>