Skip to content

Instantly share code, notes, and snippets.

@mishterk
Created July 26, 2023 12:59
<?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