Skip to content

Instantly share code, notes, and snippets.

@Pross
Last active April 4, 2020 14:03
Show Gist options
  • Save Pross/596f48566731345b562145f4003467ac to your computer and use it in GitHub Desktop.
Save Pross/596f48566731345b562145f4003467ac to your computer and use it in GitHub Desktop.
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