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

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

Hook: woocommerce_before_main_content.

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

add_action( 'woocommerce_before_main_content', 'action_function_name_4129' );
function action_function_name_4129(){
	// 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' );

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

includes/class-wc-structured-data.php 29
add_action( 'woocommerce_before_main_content', array( $this, 'generate_website_data' ), 30 );
includes/class-wc-template-loader.php 227
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
includes/theme-support/class-wc-twenty-eleven.php 21
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
includes/theme-support/class-wc-twenty-eleven.php 25
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
includes/theme-support/class-wc-twenty-fifteen.php 22
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
includes/theme-support/class-wc-twenty-fifteen.php 26
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
includes/theme-support/class-wc-twenty-fourteen.php 22
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
includes/theme-support/class-wc-twenty-fourteen.php 26
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
includes/theme-support/class-wc-twenty-nineteen.php 22
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
includes/theme-support/class-wc-twenty-nineteen.php 25
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ), 10 );
includes/theme-support/class-wc-twenty-seventeen.php 23
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ), 10 );
includes/theme-support/class-wc-twenty-seventeen.php 20
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
includes/theme-support/class-wc-twenty-sixteen.php 21
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
includes/theme-support/class-wc-twenty-sixteen.php 25
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
includes/theme-support/class-wc-twenty-ten.php 21
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
includes/theme-support/class-wc-twenty-ten.php 25
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
includes/theme-support/class-wc-twenty-thirteen.php 22
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
includes/theme-support/class-wc-twenty-thirteen.php 26
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
includes/theme-support/class-wc-twenty-twelve.php 22
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper' );
includes/theme-support/class-wc-twenty-twelve.php 26
add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ) );
includes/wc-template-hooks.php 30
add_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
includes/wc-template-hooks.php 47
add_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );