Adding tab specific class
Allow targeting specific tab with a class instead of id.
This commit is contained in:
parent
1905c5ea0a
commit
287d537349
|
@ -39,7 +39,7 @@ if ( ! empty( $tabs ) ) : ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php foreach ( $tabs as $key => $tab ) : ?>
|
<?php foreach ( $tabs as $key => $tab ) : ?>
|
||||||
<div class="panel entry-content wc-tab" id="tab-<?php echo esc_attr( $key ); ?>">
|
<div class="panel entry-content wc-tab tab-<?php echo esc_attr( $key ); ?>" id="tab-<?php echo esc_attr( $key ); ?>">
|
||||||
<?php call_user_func( $tab['callback'], $key, $tab ); ?>
|
<?php call_user_func( $tab['callback'], $key, $tab ); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
Loading…
Reference in New Issue