Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('dnd_cf7_archive_name','upload_change_archive_name', 10, 3);
- function upload_change_archive_name( $file_name, $tags, $file_upload ) {
- if( isset( $_POST['your-email'] ) ) {
- $file_name = sanitize_text_field( trim( $_POST['your-email'] ) );
- }
- return $file_name;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement