Add action to after tabs
If you have a long product description the space under the tabs is empty and is space that can be used to include banners, images, whatever. Therefore it seems appropriate to have an action to hook into after the tabs. A lot of sites we build we end up having to override the tabs.php file in the theme to achieve this as there is no hook.
This commit is contained in:
parent
e7c0c894b2
commit
e65c5a5886
|
@ -41,7 +41,8 @@ if ( ! empty( $tabs ) ) : ?>
|
|||
<div class="woocommerce-Tabs-panel woocommerce-Tabs-panel--<?php echo esc_attr( $key ); ?> panel entry-content wc-tab" id="tab-<?php echo esc_attr( $key ); ?>" role="tabpanel" aria-labelledby="tab-title-<?php echo esc_attr( $key ); ?>">
|
||||
<?php if ( isset( $tab['callback'] ) ) { call_user_func( $tab['callback'], $key, $tab ); } ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach;
|
||||
do_action( 'woocommerce_after_tabs' ); ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Reference in New Issue