Created
July 26, 2023 12:59
-
-
Save mishterk/ad76009e1a21841f6ba829e79f577247 to your computer and use it in GitHub Desktop.
This file contains 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_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