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:
steveo2001 2019-09-25 16:06:07 +01:00 committed by GitHub
parent e7c0c894b2
commit e65c5a5886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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; ?>