Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save m1ndspark/e93ad1096995c16877a401c9aa67bc15 to your computer and use it in GitHub Desktop.
Save m1ndspark/e93ad1096995c16877a401c9aa67bc15 to your computer and use it in GitHub Desktop.
gravity forms snippets
add_filter( ‘gform_tabindex’, ‘gform_tabindexer’, 10, 2 );
function gform_tabindexer( $tab_index, $form = false ) {
$starting_index = 1000; // if you need a higher tabindex, update this number
if( $form )
add_filter( ‘gform_tabindex_’ . $form[‘id’], ‘gform_tabindexer’ );
return GFCommon::$tab_index >= $starting_index ? GFCommon::$tab_index : $starting_index;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment