Skip to content

Commit e65183b

Browse files
add snippet for setting max filesize
1 parent 34fc1e8 commit e65183b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

file-upload-max-filesize.php

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
/**
4+
* Change the max filesize for file uploads in HTML Forms Premium to 1MB
5+
*/
6+
add_filter( 'hf_upload_max_filesize', function( $size ) {
7+
// size in bytes, 1000000 = 1MB
8+
return 1000000;
9+
});

0 commit comments

Comments
 (0)