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';
}

4件の結果を表示中

template

woocommerce/active-product.php ↓
do_action( 'woocommerce_before_shop_loop' );
@hooked woocommerce_output_all_notices - 10
@hooked woocommerce_result_count - 20
@hooked woocommerce_catalog_ordering - 30

/inc/woocommerce/storefront-woocommerce-template-hooks.php ↓
add_action( 'woocommerce_before_shop_loop', 'storefront_sorting_wrapper', 9 );
add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 );
add_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
add_action( 'woocommerce_before_shop_loop', 'storefront_woocommerce_pagination', 30 );
add_action( 'woocommerce_before_shop_loop', 'storefront_sorting_wrapper_close', 31 );
add_action( 'woocommerce_before_shop_loop', 'storefront_product_columns_wrapper', 40 );

Default Actions:

add_action( 'woocommerce_before_shop_loop', 'wc_print_notices', 10 );
add_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

Remove Default Actions:

remove_action( 'woocommerce_before_shop_loop', 'wc_print_notices', 10 );
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

Add Custom Action:

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

4件の結果を表示中

template

woocommerce/active-product.php ↓
do_action( 'woocommerce_after_shop_loop' );
@hooked woocommerce_pagination - 10

/inc/woocommerce/storefront-woocommerce-template-hooks.php ↓
add_action( 'woocommerce_after_shop_loop', 'storefront_sorting_wrapper', 9 );
add_action( 'woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10 );
add_action( 'woocommerce_after_shop_loop', 'woocommerce_result_count', 20 );
add_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 30 );
add_action( 'woocommerce_after_shop_loop', 'storefront_sorting_wrapper_close', 31 );
add_action( 'woocommerce_after_shop_loop', 'storefront_product_columns_wrapper_close', 40 );

Default Actions:

add_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );

Remove Default Actions:

remove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );

Add Custom Action:

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

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';
}