Created
October 17, 2023 00:00
-
-
Save estevan-ulian/70d61cc00133727c1689540e66dcd53d to your computer and use it in GitHub Desktop.
Utilizo este hook para debugar formulários e encontrar informações nos campos do Gravity Forms.
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( 'gform_pre_render', 'form_debug' ); | |
function form_debug( $form ) { | |
foreach ( $form['fields'] as &$field ) { | |
echo '<pre>'; | |
var_dump($field); | |
echo '</pre>'; | |
} | |
return $form; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment