Restrict Upload File Types (reference)
add_filter(‘upload_mimes’,’restrict_mime’); function restrict_mime($mimes) { //global $current_user; //get_currentuserinfo(); // change users in list //$users = array( //”ryan”, //”steven”, //”larry”, //”jerry” //); //if (!in_array($current_user->user_login, $users)) { if ( !current_user_can( ‘manage_options’ ) ) { $mimes = array( ‘jpg|jpeg|jpe’ => ‘image/jpeg’, ‘webp’ => ‘image/webp’,…Continue reading