Filename: gpfr-remove-spaces-and-dashes.php
gpfr-remove-spaces-and-dashes.php
<?php /** * Gravity Perks // File Renamer // Remove Spaces & Dashes in Filenames * https://gravitywiz.com/documentation/gravity-forms-file-renamer/ */ add_filter( 'gpfr_filename', function( $renamed_file, $file, $entry, $form, $field ) { $directory_path = dirname( $renamed_file ); $filename = basename( $renamed_file ); $modified_filename = str_replace( '-', '', $filename ); return $directory_path . '/' . $modified_filename; }, 10, 5 );
Your email address will not be published. Required fields are marked *
Comment *
Notify me of followup comments via e-mail
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.
Δ