woocommerce_archive_description хук-событиеWC 6.3.0

Hook: woocommerce_archive_description.

Использование

add_action( 'woocommerce_archive_description', 'wp_kama_woocommerce_archive_description_action' );

/**
 * Function for `woocommerce_archive_description` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_archive_description_action(){

	// action...
}

Список изменений

С версии 6.3.0 Введена.

Где вызывается хук

ClassicTemplate::render_archive_product()
woocommerce_archive_description
woocommerce_content()
woocommerce_archive_description
woocommerce/src/Blocks/BlockTypes/ClassicTemplate.php 281
do_action( 'woocommerce_archive_description' );
woocommerce/includes/wc-template-functions.php 997
<?php do_action( 'woocommerce_archive_description' ); ?>
woocommerce/templates/loop/header.php 45
do_action( 'woocommerce_archive_description' );

Где используется хук в WooCommerce

woocommerce/includes/wc-template-hooks.php 69
add_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
woocommerce/includes/wc-template-hooks.php 70
add_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 );