headless-cms
headless-cms copied to clipboard
❤️ A WordPress plugin that adds features to use WordPress as a headless CMS with any front-end environment using REST API
Bumps [braces](https://github.com/micromatch/braces) to 3.0.3 and updates ancestor dependencies [braces](https://github.com/micromatch/braces), [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest), [stylelint-webpack-plugin](https://github.com/webpack-contrib/stylelint-webpack-plugin), [webpack](https://github.com/webpack/webpack) and [webpack-cli](https://github.com/webpack/webpack-cli). These dependencies need to be updated together. Updates `braces` from 3.0.2 to 3.0.3 Commits 74b2db2 3.0.3...
This works: ``` curl --request GET \ --url https://mydomain/wp-json/rae/v1/cart/items \ --header 'X-Headless-CMS: true' \ --header 'content-type: application/json' \ --cookie 'wp_woocommerce_session_ad4ec40f37e54b7c8edc88479b7594e2=t_b0f4917d0533740677a3ab18f7bd4d%7C%7C1718161181%7C%7C1718157581%7C%7C0ce34add9d9edef7d7c5a36fa675bbed' ``` It returns something like this: ```json [{"key":"072b030ba126b2f4b2374f342be9ed44","product_id":60,"variation_id":0,"variation":[],"quantity":1,"data_hash":"b5c1d5ca8bae6d4896cf1807cdf763f0","line_tax_data":{"subtotal":[],"total":[]},"line_subtotal":25,"line_subtotal_tax":0,"line_total":25,"line_tax":0,"data":{"id":60,"name":"My Product","slug":"my-product","date_created":{"date":"2024-06-09 19:39:20.000000","timezone_type":1,"timezone":"+00:00"},"date_modified":{"date":"2024-06-09...
Bumps [webpack](https://github.com/webpack/webpack) from 4.46.0 to 5.94.0. Release notes Sourced from webpack's releases. v5.94.0 Bug Fixes Added runtime condition for harmony reexport checked Handle properly data/http/https protocols in source maps Make...
Added a secure REST API endpoint protected with permission_callback. This improves endpoint security by restricting access to authorized users.
Getting the following error when making a GET request to /wp-json/rae/v1/wc/states?countryCode=AW `Fatal error: Uncaught TypeError: Headless_CMS\Features\Inc\Api\Wc_States::get_formatted_states(): Argument #1 ($states) must be of type array, bool given, called in /public_html/wp-content/plugins/headless-cms-master/inc/classes/api/class-wc-states.php on...