Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esedic/558c12d8d38bf8f6f8d9da6cd50ffef1 to your computer and use it in GitHub Desktop.
Save esedic/558c12d8d38bf8f6f8d9da6cd50ffef1 to your computer and use it in GitHub Desktop.
Gravity Wiz // Gravity Forms // Set Input Type as Tel
<?php
/**
* Gravity Wiz // Gravity Forms // Set Input Type as Tel
* http://gravitywiz.com/
*/
add_filter( 'gform_field_content_723_10', 'gw_set_tel_input_type' );
function gw_set_tel_input_type( $input ) {
$input = preg_replace( "/type='[\\w]+'/", "type='tel'", $input );
return $input;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment