diff --git a/docs/cart-and-checkout-blocks/additional-checkout-fields.md b/docs/cart-and-checkout-blocks/additional-checkout-fields.md
index 29981df9bdc..89af92968c2 100644
--- a/docs/cart-and-checkout-blocks/additional-checkout-fields.md
+++ b/docs/cart-and-checkout-blocks/additional-checkout-fields.md
@@ -339,11 +339,11 @@ This results in the following address form (the billing form will be the same):
The rendered markup looks like this:
```html
-
+ data-custom="custom data" value="" >
```
### Rendering a checkbox field
diff --git a/docs/cart-and-checkout-blocks/available-filters/README.md b/docs/cart-and-checkout-blocks/available-filters/README.md
index 6185107f41b..80eeab35f71 100644
--- a/docs/cart-and-checkout-blocks/available-filters/README.md
+++ b/docs/cart-and-checkout-blocks/available-filters/README.md
@@ -81,7 +81,7 @@ const modifyCartItemClass = ( defaultValue, extensions, args ) => {
const modifyCartItemPrice = ( defaultValue, extensions, args ) => {
if ( isOrderSummaryContext( args ) ) {
- return ' for all items';
+ return '<price/> for all items';
}
return defaultValue;
};
@@ -95,7 +95,7 @@ const modifyItemName = ( defaultValue, extensions, args ) => {
const modifySubtotalPriceFormat = ( defaultValue, extensions, args ) => {
if ( isOrderSummaryContext( args ) ) {
- return ' per item';
+ return '<price/> per item';
}
return defaultValue;
};
diff --git a/docs/cart-and-checkout-blocks/available-filters/order-summary-items.md b/docs/cart-and-checkout-blocks/available-filters/order-summary-items.md
index ce4134df03c..c210fa39fcf 100644
--- a/docs/cart-and-checkout-blocks/available-filters/order-summary-items.md
+++ b/docs/cart-and-checkout-blocks/available-filters/order-summary-items.md
@@ -106,17 +106,17 @@ The `cartItemPrice` filter allows to format the order summary item price.
### Parameters
-- _defaultValue_ `string` (default: ``) - The default order summary item price.
+- _defaultValue_ `string` (default: `<price/>`) - The default order summary item price.
- _extensions_ `object` (default: `{}`) - The extensions object.
- _args_ `object` - The arguments object with the following keys:
- _cart_ `object` - The cart object from `wc/store/cart`, see [Cart object](#cart-object).
- _cartItem_ `object` - The order summary item object from `wc/store/cart`, see [order summary item object](#cart-item-object).
- _context_ `string` (allowed values: `cart` or `summary`) - The context of the item.
-- _validation_ `boolean` - Checks if the return value contains the substring ``.
+- _validation_ `boolean` - Checks if the return value contains the substring `<price/>`.
### Returns
-- `string` - The modified format of the order summary item price, which must contain the substring ``, or the original price format.
+- `string` - The modified format of the order summary item price, which must contain the substring `<price/>`, or the original price format.
### Code examples
@@ -132,7 +132,7 @@ const modifyCartItemPrice = ( defaultValue, extensions, args, validation ) => {
return defaultValue;
}
- return ' for all items';
+ return '<price/> for all items';
};
registerCheckoutFilters( 'example-extension', {
@@ -153,14 +153,14 @@ const modifyCartItemPrice = ( defaultValue, extensions, args, validation ) => {
}
if ( args?.cartItem?.name === 'Beanie with Logo' ) {
- return ' to keep you ☀️';
+ return '<price/> to keep you ☀️';
}
if ( args?.cartItem?.name === 'Sunglasses' ) {
- return ' to keep you ❄️';
+ return '<price/> to keep you ❄️';
}
- return ' for all items';
+ return '<price/> for all items';
};
registerCheckoutFilters( 'example-extension', {
@@ -261,17 +261,17 @@ The `subtotalPriceFormat` filter allows to format the order summary item subtota
### Parameters
-- _defaultValue_ `string` (default: ``) - The default order summary item subtotal price.
+- _defaultValue_ `string` (default: `<price/>`) - The default order summary item subtotal price.
- _extensions_ `object` (default: `{}`) - The extensions object.
- _args_ `object` - The arguments object with the following keys:
- _cart_ `object` - The cart object from `wc/store/cart`, see [Cart object](#cart-object).
- _cartItem_ `object` - The order summary item object from `wc/store/cart`, see [order summary item object](#cart-item-object).
- _context_ `string` (allowed values: `cart` or `summary`) - The context of the item.
-- _validation_ `boolean` - Checks if the return value contains the substring ``.
+- _validation_ `boolean` - Checks if the return value contains the substring `<price/>`.
### Returns
-- `string` - The modified format of the order summary item subtotal price, which must contain the substring ``, or the original price format.
+- `string` - The modified format of the order summary item subtotal price, which must contain the substring `<price/>`, or the original price format.
### Code examples
@@ -292,7 +292,7 @@ const modifySubtotalPriceFormat = (
return defaultValue;
}
- return ' per item';
+ return '<price/> per item';
};
registerCheckoutFilters( 'example-extension', {
@@ -318,14 +318,14 @@ const modifySubtotalPriceFormat = (
}
if ( args?.cartItem?.name === 'Beanie with Logo' ) {
- return ' per warm beanie';
+ return '<price/> per warm beanie';
}
if ( args?.cartItem?.name === 'Sunglasses' ) {
- return ' per cool sunglasses';
+ return '<price/> per cool sunglasses';
}
- return ' per item';
+ return '<price/> per item';
};
registerCheckoutFilters( 'example-extension', {
diff --git a/docs/cart-and-checkout-blocks/available-filters/totals-footer-item.md b/docs/cart-and-checkout-blocks/available-filters/totals-footer-item.md
index 360c7627b80..c3a72631330 100644
--- a/docs/cart-and-checkout-blocks/available-filters/totals-footer-item.md
+++ b/docs/cart-and-checkout-blocks/available-filters/totals-footer-item.md
@@ -71,11 +71,11 @@ The `totalValue` filter allows to format the total price in the footer of the Ca
- _extensions_ `object` (default: `{}`) - The extensions object.
- _args_ `object` - The arguments object with the following keys:
- _cart_ `object` - The cart object from `wc/store/cart`, see [Cart object](#cart-object).
-- _validation_ `boolean` - Checks if the return value contains the substring ``.
+- _validation_ `boolean` - Checks if the return value contains the substring `<price/>`.
### Returns
-- `string` - The modified format of the total price, which must contain the substring ``, or the original price format.
+- `string` - The modified format of the total price, which must contain the substring `<price/>`, or the original price format.
### Code example
@@ -83,7 +83,7 @@ The `totalValue` filter allows to format the total price in the footer of the Ca
const { registerCheckoutFilters } = window.wc.blocksCheckout;
const modifyTotalsPrice = ( defaultValue, extensions, args, validation ) => {
- return 'Pay now';
+ return 'Pay <price/> now';
};
registerCheckoutFilters( 'my-extension', {
diff --git a/docs/cart-and-checkout-blocks/available-slot-fills.md b/docs/cart-and-checkout-blocks/available-slot-fills.md
index 80effcba522..efc47abcfa2 100644
--- a/docs/cart-and-checkout-blocks/available-slot-fills.md
+++ b/docs/cart-and-checkout-blocks/available-slot-fills.md
@@ -22,11 +22,11 @@ const { ExperimentalOrderMeta } = window.wc.blocksCheckout;
const render = () => {
return (
-
-
+ <ExperimentalOrderLocalPickupPackages>
+ <div>
{ __(
'By using our convenient local pickup option, you can come to our store and pick up your order. We will send you and email when your order is ready for pickup.',
'YOUR-TEXTDOMAIN'
) }
-
+ <ExperimentalDiscountsMeta>
+ <div class="wc-block-components-totals-wrapper">
{ __( 'You have 98683 coins to spend ...', 'YOUR-TEXTDOMAIN' ) }
-
-
+ </div>
+ </ExperimentalDiscountsMeta>
);
};
diff --git a/docs/cart-and-checkout-blocks/checkout-payment-methods/payment-method-integration.md b/docs/cart-and-checkout-blocks/checkout-payment-methods/payment-method-integration.md
index 602bcb7deaa..d3457214654 100644
--- a/docs/cart-and-checkout-blocks/checkout-payment-methods/payment-method-integration.md
+++ b/docs/cart-and-checkout-blocks/checkout-payment-methods/payment-method-integration.md
@@ -43,8 +43,8 @@ The options you feed the configuration instance should be an object in this shap
```js
const options = {
name: 'my_payment_method',
- content:
';
+ echo '</div>';
}
```
@@ -387,7 +387,7 @@ If you wish to display the custom field value on the admin order edition page, y
add_action( 'woocommerce_admin_order_data_after_billing_address', 'my_custom_checkout_field_display_admin_order_meta', 10, 1 );
function my_custom_checkout_field_display_admin_order_meta( $order ){
- echo '
+ </table>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+<<>?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+ <system.webServer>
+ <handlers accessPolicy="Read, Execute, Script" />
+ <rewrite>
+ <rules>
+ <rule name="wordpress" patternSyntax="Wildcard">
+ <match url="*" />
+ <conditions>
+ <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
+ <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
+ </conditions>
+ <action type="Rewrite" url="index.php" />
+ </rule>
+ </rules>
+ </rewrite>
+ </system.webServer>
+</configuration>
```
### Pages direct to wrong place
@@ -74,6 +74,6 @@ Landing on the wrong page when clicking an endpoint URL is typically caused by i
### How to Remove "Downloads" from My Account
-Sometimes the "Downloads" endpoint on the "My account" page does not need to be displayed. This can be removed by going to **WooCommerce → Settings → Advanced → Account endpoints** and clearing the Downloads endpoint field.
+Sometimes the "Downloads" endpoint on the "My account" page does not need to be displayed. This can be removed by going to **WooCommerce > Settings > Advanced > Account endpoints** and clearing the Downloads endpoint field.
![Account endpoints](https://developer.woocommerce.com/wp-content/uploads/2023/12/Screenshot-2023-04-09-at-11.45.58-PM.png)
diff --git a/docs/getting-started/troubleshooting-endpoints.md b/docs/getting-started/troubleshooting-endpoints.md
index 467d9dba1cb..11de5172810 100644
--- a/docs/getting-started/troubleshooting-endpoints.md
+++ b/docs/getting-started/troubleshooting-endpoints.md
@@ -18,24 +18,24 @@ For more information, learn how to [Customize Endpoints](./customizing-endpoint-
On Windows servers, the **web.config** file may not be set correctly to allow for the endpoints to work correctly. In this case, clicking on endpoint links (e.g. /edit-account/ or /customer-logout/) may appear to do nothing except refresh the page. In order to resolve this, try simplifying the **web.config** file on your Windows server. Here's a sample file configuration:
```xml
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+ <system.webServer>
+ <handlers accessPolicy="Read, Execute, Script" />
+ <rewrite>
+ <rules>
+ <rule name="wordpress" patternSyntax="Wildcard">
+ <match url="*" />
+ <conditions>
+ <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
+ <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
+ </conditions>
+ <action type="Rewrite" url="index.php" />
+ </rule>
+ </rules>
+ </rewrite>
+ </system.webServer>
+</configuration>
```
## Pages direct to wrong place
@@ -44,6 +44,6 @@ Landing on the wrong page when clicking an endpoint URL is typically caused by i
## How to Remove "Downloads" from My Account
-Sometimes the "Downloads" endpoint on the "My account" page does not need to be displayed. This can be removed by going to **WooCommerce → Settings → Advanced → Account endpoints** and clearing the Downloads endpoint field.
+Sometimes the "Downloads" endpoint on the "My account" page does not need to be displayed. This can be removed by going to **WooCommerce > Settings > Advanced > Account endpoints** and clearing the Downloads endpoint field.
![Account endpoints](https://developer.woocommerce.com/wp-content/uploads/2023/12/Screenshot-2023-04-09-at-11.45.58-PM.png)
diff --git a/docs/high-performance-order-storage/cli-tools.md b/docs/high-performance-order-storage/cli-tools.md
index e61035d60cd..c4b1877b9e5 100644
--- a/docs/high-performance-order-storage/cli-tools.md
+++ b/docs/high-performance-order-storage/cli-tools.md
@@ -229,7 +229,7 @@ The backfill command can be used to selectively migrate order data (or whole ord
The exact syntax for this command is as follows:
```plaintext
-wp wc hpos backfill --from= --to= [--meta_keys=] [--props=]
+wp wc hpos backfill <order_id> --from=<datastore> --to=<datastore> [--meta_keys=<meta_keys>] [--props=<props>]
```
You have to specify which datastore to use as source (either `posts` or `hpos`) and which one to use as destination. The `--meta_keys` and `--props` arguments receive a comma separated list of meta keys and order properties, which can be used to move only certain data from one datastore to the other, instead of the whole order.
diff --git a/docs/product-collection-block/register-product-collection.md b/docs/product-collection-block/register-product-collection.md
index 677668ba71e..b754746a679 100644
--- a/docs/product-collection-block/register-product-collection.md
+++ b/docs/product-collection-block/register-product-collection.md
@@ -36,7 +36,7 @@ We will explain important arguments that can be passed to `__experimentalRegiste
A Collection is defined by an object that can contain the following fields:
-- `name` (type `string`): A unique and machine-readable collection name. We recommend using the format `/product-collection/`. Both `` and `` should consist only of alphanumeric characters and hyphens (e.g., `my-plugin/product-collection/my-collection`).
+- `name` (type `string`): A unique and machine-readable collection name. We recommend using the format `<plugin-name>/product-collection/<collection-name>`. Both `<plugin-name>` and `<collection-name>` should consist only of alphanumeric characters and hyphens (e.g., `my-plugin/product-collection/my-collection`).
- `title` (type `string`): The title of the collection, which will be displayed in various places including the block inserter and collection chooser.
- `description` (optional, type `string`): A human-readable description of the collection.
- `innerBlocks` (optional, type `Array[]`): An array of inner blocks that will be added to the collection. If not provided, the default inner blocks will be used.
diff --git a/docs/product-editor-development/how-to-guides/custom-field-tutorial.md b/docs/product-editor-development/how-to-guides/custom-field-tutorial.md
index 64fb3203025..ae243d3c9dc 100644
--- a/docs/product-editor-development/how-to-guides/custom-field-tutorial.md
+++ b/docs/product-editor-development/how-to-guides/custom-field-tutorial.md
@@ -62,7 +62,7 @@ In React:
import { registerBlockType } from '@wordpress/blocks';
function Edit() {
- return