Skip to content

Instantly share code, notes, and snippets.

@maddisondesigns
Created June 10, 2025 10:28
Show Gist options
  • Save maddisondesigns/441187996a8af8d249b5e333a576a13a to your computer and use it in GitHub Desktop.
Save maddisondesigns/441187996a8af8d249b5e333a576a13a to your computer and use it in GitHub Desktop.
Tweak the Step markup for a multi-step form (for Form ID 5)
/**
* Tweak the Step markup for a multi-step form (for Form ID 5)
*/
function hra_progress_steps_markup( $progress_steps, $form, $page ) {
$progress_steps = str_replace( '>1</span>', '>Step 1</span>', $progress_steps );
return $progress_steps;
}
add_filter( 'gform_progress_steps_5', 'hra_progress_steps_markup', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment