From 49c379c5a7de603a6cc0005981e67ecf72c5a4ae Mon Sep 17 00:00:00 2001 From: Ramon Ahnert Date: Mon, 13 May 2024 05:20:07 -0300 Subject: [PATCH] Fix typo in the Exposing your data in the Store API documentation (#43488) * Fix basic usage code snippet example in extend-rest-api-add-data.md * Add changefile(s) from automation for the following project(s): woocommerce-blocks --------- Co-authored-by: github-actions --- .../extensibility/rest-api/extend-rest-api-add-data.md | 4 ++-- plugins/woocommerce/changelog/43488-patch-1 | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 plugins/woocommerce/changelog/43488-patch-1 diff --git a/plugins/woocommerce-blocks/docs/third-party-developers/extensibility/rest-api/extend-rest-api-add-data.md b/plugins/woocommerce-blocks/docs/third-party-developers/extensibility/rest-api/extend-rest-api-add-data.md index ef9abeb3577..44a8eade94c 100644 --- a/plugins/woocommerce-blocks/docs/third-party-developers/extensibility/rest-api/extend-rest-api-add-data.md +++ b/plugins/woocommerce-blocks/docs/third-party-developers/extensibility/rest-api/extend-rest-api-add-data.md @@ -55,10 +55,10 @@ function my_schema_callback() { return [ 'custom-key' => [ 'description' => __( 'My custom data', 'plugin-namespace' ), - 'type' => 'string' + 'type' => 'string', 'readonly' => true, ] - ] + ]; } ``` diff --git a/plugins/woocommerce/changelog/43488-patch-1 b/plugins/woocommerce/changelog/43488-patch-1 new file mode 100644 index 00000000000..06b859056ca --- /dev/null +++ b/plugins/woocommerce/changelog/43488-patch-1 @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +This PR fixes a minor typo in the Exposing your data in the Store API doc. \ No newline at end of file