Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created April 5, 2024 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/688aaf9377845e6fbd21bf77a8fc187f to your computer and use it in GitHub Desktop.
Save plugin-republic/688aaf9377845e6fbd21bf77a8fc187f to your computer and use it in GitHub Desktop.
<?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