woocommerce_sidebar хук-событиеWC 1.0

Hook: woocommerce_sidebar.

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

add_action( 'woocommerce_sidebar', 'wp_kama_woocommerce_sidebar_action' );

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

	// action...
}

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

В файле: /templates/archive-product.php
woocommerce_sidebar
woocommerce/templates/archive-product.php 103
do_action( 'woocommerce_sidebar' );
woocommerce/templates/single-product.php 56
do_action( 'woocommerce_sidebar' );

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

woocommerce/includes/theme-support/class-wc-twenty-nineteen.php 31
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );
woocommerce/includes/theme-support/class-wc-twenty-twenty-one.php 28
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );
woocommerce/includes/theme-support/class-wc-twenty-twenty-two.php 28
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );
woocommerce/includes/theme-support/class-wc-twenty-twenty.php 31
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );
woocommerce/includes/wc-template-hooks.php 54
add_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );