Skip to content

Instantly share code, notes, and snippets.

@techjewel
Last active October 20, 2022 00:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techjewel/b82b410d0036a0d41080d399774217fc to your computer and use it in GitHub Desktop.
Save techjewel/b82b410d0036a0d41080d399774217fc to your computer and use it in GitHub Desktop.
Add name Attributes to Fluent Forms HTML attributes
<?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