WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

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

Hook: woocommerce_before_main_content.

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

add_action( 'woocommerce_before_main_content', 'action_function_name_8889' );
function action_function_name_8889(){
	// action...
}

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

В файле: /templates/archive-product.php
woocommerce_before_main_content
woocommerce/templates/archive-product.php 29
do_action( 'woocommerce_before_main_content' );
woocommerce/templates/single-product.php 31
do_action( 'woocommerce_before_main_content' );

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

woocommerce/templates/archive-product.php 29
add_action( 'woocommerce_before_main_content', array( $this, 'generate_website_data' ), 30 );
woocommerce/templates/archive-product.php 254
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
woocommerce/templates/archive-product.php 21
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
woocommerce/templates/archive-product.php 25
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
woocommerce/templates/archive-product.php 22
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
woocommerce/templates/archive-product.php 26
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
woocommerce/templates/archive-product.php 22
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
woocommerce/templates/archive-product.php 26
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
woocommerce/templates/archive-product.php 24
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
woocommerce/templates/archive-product.php 27
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ), 10 );
woocommerce/templates/archive-product.php 22
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
woocommerce/templates/archive-product.php 25
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ), 10 );
woocommerce/templates/archive-product.php 21
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
woocommerce/templates/archive-product.php 25
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
woocommerce/templates/archive-product.php 21
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
woocommerce/templates/archive-product.php 25
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
woocommerce/templates/archive-product.php 22
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
woocommerce/templates/archive-product.php 26
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
woocommerce/templates/archive-product.php 22
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
woocommerce/templates/archive-product.php 26
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
woocommerce/templates/archive-product.php 24
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
woocommerce/templates/archive-product.php 27
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ), 10 );
woocommerce/templates/archive-product.php 30
add_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
woocommerce/templates/archive-product.php 47
add_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );