From 08c1d4bb406d3c2b6dc4bc3f0113adf5b556900d Mon Sep 17 00:00:00 2001 From: Raluca Stan Date: Fri, 22 Oct 2021 14:41:54 +0100 Subject: [PATCH] Update documentation Automatic update after running npm run build:docs --- bin/hook-docs/data/actions.json | 37 ++-------------------- docs/extensibility/actions.md | 55 ++------------------------------- 2 files changed, 4 insertions(+), 88 deletions(-) diff --git a/bin/hook-docs/data/actions.json b/bin/hook-docs/data/actions.json index 14a28155349..e2c756c207a 100644 --- a/bin/hook-docs/data/actions.json +++ b/bin/hook-docs/data/actions.json @@ -175,17 +175,6 @@ "long_description_html": "" } }, - { - "name": "woocommerce_blocks_cart_enqueue_data", - "file": "BlockTypes/MiniCart.php", - "type": "action", - "doc": { - "description": "Fires after cart block data is registered.", - "long_description": "", - "tags": [], - "long_description_html": "" - } - }, { "name": "woocommerce_blocks_cart_enqueue_data", "file": "BlockTypes/Cart.php", @@ -199,7 +188,7 @@ }, { "name": "woocommerce_blocks_cart_enqueue_data", - "file": "BlockTypes/CartI2.php", + "file": "BlockTypes/MiniCart.php", "type": "action", "doc": { "description": "Fires after cart block data is registered.", @@ -230,17 +219,6 @@ "long_description_html": "" } }, - { - "name": "woocommerce_blocks_enqueue_cart_block_scripts_after", - "file": "BlockTypes/CartI2.php", - "type": "action", - "doc": { - "description": "Fires after cart block scripts are enqueued.", - "long_description": "", - "tags": [], - "long_description_html": "" - } - }, { "name": "woocommerce_blocks_enqueue_cart_block_scripts_before", "file": "BlockTypes/Cart.php", @@ -252,17 +230,6 @@ "long_description_html": "" } }, - { - "name": "woocommerce_blocks_enqueue_cart_block_scripts_before", - "file": "BlockTypes/CartI2.php", - "type": "action", - "doc": { - "description": "Fires before cart block scripts are enqueued.", - "long_description": "", - "tags": [], - "long_description_html": "" - } - }, { "name": "woocommerce_blocks_enqueue_checkout_block_scripts_after", "file": "BlockTypes/Checkout.php", @@ -301,7 +268,7 @@ "file": "Integrations/IntegrationRegistry.php", "type": "action", "doc": { - "description": "Fires when and IntegrationRegistry is initialized.", + "description": "Fires when the IntegrationRegistry is initialized.", "long_description": "Runs before integrations are initialized allowing new integration to be registered for use. This should be used as the primary hook for integrations to include their scripts, styles, and other code extending the blocks.", "tags": [ { diff --git a/docs/extensibility/actions.md b/docs/extensibility/actions.md index 4410568fd07..b72f14fc525 100644 --- a/docs/extensibility/actions.md +++ b/docs/extensibility/actions.md @@ -14,12 +14,9 @@ - [woocommerce_applied_coupon](#woocommerce_applied_coupon) - [woocommerce_blocks_cart_enqueue_data](#woocommerce_blocks_cart_enqueue_data) - [woocommerce_blocks_cart_enqueue_data](#woocommerce_blocks_cart_enqueue_data-1) - - [woocommerce_blocks_cart_enqueue_data](#woocommerce_blocks_cart_enqueue_data-2) - [woocommerce_blocks_checkout_enqueue_data](#woocommerce_blocks_checkout_enqueue_data) - [woocommerce_blocks_enqueue_cart_block_scripts_after](#woocommerce_blocks_enqueue_cart_block_scripts_after) - - [woocommerce_blocks_enqueue_cart_block_scripts_after](#woocommerce_blocks_enqueue_cart_block_scripts_after-1) - [woocommerce_blocks_enqueue_cart_block_scripts_before](#woocommerce_blocks_enqueue_cart_block_scripts_before) - - [woocommerce_blocks_enqueue_cart_block_scripts_before](#woocommerce_blocks_enqueue_cart_block_scripts_before-1) - [woocommerce_blocks_enqueue_checkout_block_scripts_after](#woocommerce_blocks_enqueue_checkout_block_scripts_after) - [woocommerce_blocks_enqueue_checkout_block_scripts_before](#woocommerce_blocks_enqueue_checkout_block_scripts_before) - [woocommerce_blocks_loaded](#woocommerce_blocks_loaded) @@ -209,22 +206,6 @@ do_action( 'woocommerce_blocks_cart_enqueue_data' ) ### Source -File: [BlockTypes/MiniCart.php](../src/BlockTypes/MiniCart.php) - ---- - -## woocommerce_blocks_cart_enqueue_data - - -Fires after cart block data is registered. - -```php -do_action( 'woocommerce_blocks_cart_enqueue_data' ) -``` - -### Source - - File: [BlockTypes/Cart.php](../src/BlockTypes/Cart.php) --- @@ -241,7 +222,7 @@ do_action( 'woocommerce_blocks_cart_enqueue_data' ) ### Source -File: [BlockTypes/CartI2.php](../src/BlockTypes/CartI2.php) +File: [BlockTypes/MiniCart.php](../src/BlockTypes/MiniCart.php) --- @@ -277,22 +258,6 @@ File: [BlockTypes/Cart.php](../src/BlockTypes/Cart.php) --- -## woocommerce_blocks_enqueue_cart_block_scripts_after - - -Fires after cart block scripts are enqueued. - -```php -do_action( 'woocommerce_blocks_enqueue_cart_block_scripts_after' ) -``` - -### Source - - -File: [BlockTypes/CartI2.php](../src/BlockTypes/CartI2.php) - ---- - ## woocommerce_blocks_enqueue_cart_block_scripts_before @@ -309,22 +274,6 @@ File: [BlockTypes/Cart.php](../src/BlockTypes/Cart.php) --- -## woocommerce_blocks_enqueue_cart_block_scripts_before - - -Fires before cart block scripts are enqueued. - -```php -do_action( 'woocommerce_blocks_enqueue_cart_block_scripts_before' ) -``` - -### Source - - -File: [BlockTypes/CartI2.php](../src/BlockTypes/CartI2.php) - ---- - ## woocommerce_blocks_enqueue_checkout_block_scripts_after @@ -380,7 +329,7 @@ File: [Domain/Bootstrap.php](../src/Domain/Bootstrap.php) ## woocommerce_blocks_{$this->registry_identifier}_registration -Fires when and IntegrationRegistry is initialized. +Fires when the IntegrationRegistry is initialized. ```php do_action( 'woocommerce_blocks_{$this->registry_identifier}_registration', \Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry $this )