template

woocommerce/active-product.php ↓
do_action( 'woocommerce_before_main_content' );

inc/wc-template-hook.php ↓
add_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); ↓
function woocommerce_output_content_wrapper()

wc_get_template( 'global/wrapper-start.php' );

Default Actions:

add_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
add_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );

Remove Default Actions:

remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );

Add Custom Action:

add_action( 'woocommerce_before_main_content', 'your_custom_action', 15 );
function your_custom_action() {
echo 'Test';
}

未分類

template

woocommerce/active-product.php ↓
do_action( 'woocommerce_before_main_content' );

/inc/woocommerce/storefront-woocommerce-template-hooks.php ↓
@hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
@hooked woocommerce_breadcrumb - 20
@hooked WC_Structured_Data::generate_website_data() - 30

Default Actions:

add_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
add_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 );

Remove Default Actions:

remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
remove_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 );

Add Custom Action:

add_action( 'woocommerce_archive_description', 'your_custom_action', 15 );
function your_custom_action() {
echo 'Tset';
}

選択に一致する商品が見つかりませんでした。

template

woocommerce/active-product.php ↓
do_action( 'woocommerce_after_main_content' );

/inc/woocommerce/storefront-woocommerce-template-hooks.php ↓
add_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); ↓
woocommerce/global/wrapper-end.php

Default Actions:

add_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 );

Remove Default Actions:

remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 );

Add Custom Action:

add_action( 'woocommerce_after_main_content', 'your_custom_action', 15 );
function your_custom_action() {
echo 'Test';
}