Update additional-checkout-fields.md (#50377)

* Update additional-checkout-fields.md

* Update docs-manifest.json

---------

Co-authored-by: Alex Florisca <alex.florisca@automattic.com>
This commit is contained in:
Heitor Pedroso 2024-08-13 08:03:21 -03:00 committed by GitHub
parent eaa13c0151
commit b2f5f98593
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -617,7 +617,7 @@ You can use the `woocommerce_get_default_value_for_{$key}` filters to provide a
```php
add_filter(
"woocommerce_blocks_get_default_value_for_my-plugin-namespace/address-field",
"woocommerce_get_default_value_for_my-plugin-namespace/address-field",
function ( $value, $group, $wc_object ) {
if ( 'billing' === $group ) {
@ -633,7 +633,7 @@ add_filter(
);
add_filter(
"woocommerce_blocks_get_default_value_for_my-plugin-namespace/my-other-field",
"woocommerce_get_default_value_for_my-plugin-namespace/my-other-field",
function ( $value, $group, $wc_object ) {
$my_plugin_key = 'existing_order_field_key';

View File

@ -102,7 +102,7 @@
"menu_title": "Additional Checkout Fields",
"tags": "reference",
"edit_url": "https://github.com/woocommerce/woocommerce/edit/trunk/docs/cart-and-checkout-blocks/additional-checkout-fields.md",
"hash": "e956a9b4c3d57d125daafc850d9a28bd0d626e9498478a15c7fbab540359ed95",
"hash": "1b034ede098b933b6b00a9a27ba33e418b1c88c4883e2b9b191092e32866f7b9",
"url": "https://raw.githubusercontent.com/woocommerce/woocommerce/trunk/docs/cart-and-checkout-blocks/additional-checkout-fields.md",
"id": "cb5dd8d59043a4e53929121b45da7b33b1661ab8"
}
@ -1706,5 +1706,5 @@
"categories": []
}
],
"hash": "945d1eb884a52c8c0dbc4c8852760e332ab40030de82403d1a7103b2517c36a1"
"hash": "402a928bfa0399c09151423796f98caeb8f99a70f8a4cf009db6703ec7949468"
}