Last active
October 20, 2022 00:39
-
-
Save techjewel/b82b410d0036a0d41080d399774217fc to your computer and use it in GitHub Desktop.
Add name Attributes to Fluent Forms HTML attributes
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 Title Attributes to Fluent Forms | |
*/ | |
add_filter('fluent_form_html_attributes', function ($atts, $form) { | |
$atts['name'] = esc_attr($form->title); | |
return $atts; | |
}, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment