Last active
May 16, 2019 08:33
-
-
Save stirtingale/8704af992899bee48f76eab149b82945 to your computer and use it in GitHub Desktop.
Add Netlify Hook for FORMIDABLE Wordpress forms ( Useful if using Netlify as static fallback )
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
// FORMIDABLE NETFLIY HOOK | |
add_filter( 'frm_form_attributes', 'add_custom_form_attributes', 10, 2 ); | |
function add_custom_form_attributes( $attributes, $form ){ | |
$attributes .= 'data-netlify="true"'; | |
return $attributes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment