render product attributes in 'woocommerce_product_additional_information' action

This commit is contained in:
Manos Psychogyiopoulos 2016-12-18 00:53:45 +02:00
parent a9a21bf9e0
commit af3c24881d
2 changed files with 8 additions and 1 deletions

View File

@ -192,6 +192,13 @@ add_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );
add_filter( 'woocommerce_product_tabs', 'woocommerce_default_product_tabs' );
add_filter( 'woocommerce_product_tabs', 'woocommerce_sort_product_tabs', 99 );
/**
* Additional Information tab.
*
* @see wc_display_product_attributes()
*/
add_action( 'woocommerce_product_additional_information', 'wc_display_product_attributes', 10 );
/**
* Photoswipe.
*/

View File

@ -30,4 +30,4 @@ $heading = esc_html( apply_filters( 'woocommerce_product_additional_information_
<h2><?php echo $heading; ?></h2>
<?php endif; ?>
<?php wc_display_product_attributes( $product ); ?>
<?php do_action( 'woocommerce_product_additional_information', $product ); ?>