Skip to content

Instantly share code, notes, and snippets.

@Crocoblock
Last active February 26, 2025 03:30
Show Gist options
  • Select an option

  • Save Crocoblock/0e61ae185cc732fa1d04c6c734d41c6b to your computer and use it in GitHub Desktop.

Select an option

Save Crocoblock/0e61ae185cc732fa1d04c6c734d41c6b to your computer and use it in GitHub Desktop.
JetFormBuilder Add id attribute to form
<?php
add_filter( 'jet-form-builder/before-start-form', function ( $before_form_start, $form ) {
$form->add_attribute( 'id', 'jet-form-' . $form->form_id );
return $before_form_start;
}, 0, 2 );
@T2AComunicacao
Copy link

T2AComunicacao commented Jul 25, 2024

Where I need to insert this code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment