Skip to content

Instantly share code, notes, and snippets.

@mishterk
Created July 26, 2023 12:59
Show Gist options
  • Save mishterk/ad76009e1a21841f6ba829e79f577247 to your computer and use it in GitHub Desktop.
Save mishterk/ad76009e1a21841f6ba829e79f577247 to your computer and use it in GitHub Desktop.
<?php
add_action( 'af/field_group/before_field_group', function ( $field_group, $form, $args ) {
if ( $form['key'] !== 'form_64c0bb30bd954' ) {
return;
}
echo '<div class="my-field-group-wrapper">';
}, 10, 3 );
add_action( 'af/field_group/after_field_group', function ( $field_group, $form, $args ) {
if ( $form['key'] !== 'form_64c0bb30bd954' ) {
return;
}
echo '</div>'; // eof .my-field-group-wrapper
}, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment