Created
April 5, 2024 10:15
-
-
Save plugin-republic/688aaf9377845e6fbd21bf77a8fc187f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add div inside group wrapper | |
*/ | |
function prefix_open_group_inner( $group_id, $group, $group_index ) { | |
echo '<div class="my-group-inner">'; | |
} | |
add_action( 'pewc_open_group_inner', 'prefix_open_group_inner', 10, 4 ); | |
function prefix_close_group_inner( $group_id, $group, $group_index ) { | |
echo '</div><!-- / .my-group-inner -->'; | |
} | |
add_action( 'pewc_close_group_inner', 'prefix_close_group_inner', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment