Last active
April 4, 2020 14:03
-
-
Save Pross/596f48566731345b562145f4003467ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'fl_module_upload_regex', function( $regex, $type, $ext, $file ) { | |
$regex['photo'] = '#(jpe?g|png|gif|bmp|tiff?|svg)#i'; | |
return $regex; | |
}, 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment