Created
March 15, 2022 10:30
-
-
Save patrickposner/75830ec8295c5c76d8fa4fba98ca459f to your computer and use it in GitHub Desktop.
FILR disallow additional file types for the upload
This file contains hidden or 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
<?php | |
add_filter('filr_disallowed_file_extensions', function( $extensions ) { | |
// Extensions contains an array by default which looks like this: array( 'htaccess', 'php', 'php3', 'php4', 'php5', 'phtml' ). | |
// Lets exclude HTML files here. | |
$extensions[] = 'html'; | |
return $extensions; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment