template

single-product.php ↓
do_action( 'woocommerce_before_main_content' );
@hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
@hooked woocommerce_breadcrumb - 20

/inc/woocommerce/storefront-woocommerce-template-hooks.php ↓
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
/inc/wc-template-functions.php ↓
function woocommerce_output_content_wrapper() ↓
wc_get_template( 'global/wrapper-start.php' );

/inc/woocommerce/storefront-woocommerce-template-hooks.php ↓
add_action( 'storefront_before_content', 'woocommerce_breadcrumb', 10 );
/inc/wc-template-functions.php ↓
function woocommerce_breadcrumb( $args = array() )

Default Actions:

add_action( 'woocommerce_before_single_product', 'wc_print_notices', 10 );

Remove Default Actions:

remove_action( 'woocommerce_before_single_product', 'wc_print_notices', 10 );

Add Custom Action:

add_action( 'woocommerce_before_single_product', 'your_custom_action', 15 );
function your_custom_action() {
echo 'Tset';
}
do_action( ‘woocommerce_product_thumbnails’ ) theme/woocommerce/single-product/product-imges.php

template

/woocommerce/content-single-product.php ↓
@hooked woocommerce_show_product_sale_flash - 10
@hooked woocommerce_show_product_images - 20

/inc/wc-template-functions.php ↓
function woocommerce_show_product_sale_flash()

/inc/wc-template-functions.php ↓
function woocommerce_show_product_images()

Default Actions:

add_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 );
add_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );

Remove Default Actions:

remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 );
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );

Add Custom Action:

add_action( 'woocommerce_before_single_product_summary', 'your_custom_action', 5 );
function your_custom_action() {
echo 'Test';
}

VネックTシャツ

¥18

商品カテゴリー:
‘tabs’ theme/woocommerce/single-product/tabs/tabs.php

説明

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

レビュー

レビューはまだありません。

以前にこの商品を購入したことのあるログイン済みのユーザーのみレビューを残すことができます。

template

/woocommerce/content-single-product.php ↓
do_action( 'woocommerce_before_single_product_summary' ); ↓
@hooked woocommerce_output_product_data_tabs - 10
@hooked woocommerce_upsell_display - 15
@hooked woocommerce_output_related_products - 20

/inc/wc-template-functions.php ↓
function woocommerce_output_product_data_tabs() ↓
wc_get_template( 'single-product/tabs/tabs.php'

/inc/woocommerce/storefront-woocommerce-template-hooks.php ↓
add_action( 'woocommerce_after_single_product_summary', 'storefront_upsell_display', 15 );
/inc/wc-template-functions.php ↓
function woocommerce_upsell_display( $limit = '-1', $columns = 4, $orderby = 'rand', $order = 'desc' )

/inc/wc-template-functions.php ↓
function woocommerce_output_related_products()

Default Actions:

add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

Remove Default Actions:

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

Add Custom Action:

add_action( 'woocommerce_after_single_product_summary', 'your_custom_action', 5 );
function your_custom_action() {
echo 'Tset';
}

template

/woocommerce/content-single-product.php ↓
do_action( 'woocommerce_after_single_product' );

Add Custom Action:

add_action( 'woocommerce_after_single_product', 'your_custom_action', 5 );
function your_custom_action() {
echo 'Tset';
}