Wordpress .torrent yükleme (1 Viewer)

Joined
Mar 30, 2019
Credits
0
Rating - 0%
Bu yazımda sizlere wordpress siteye .torrent ve bunun gibi yüklenemeyen dosyaları yüklemeyi göstereceğim. Bu kod parçacığını temanızın function.php dosyasına eklememiz gerekiyor.

<?php
add_filter('upload_mimes','add_custom_mime_types');
function add_custom_mime_types($mimes){
return array_merge($mimes,array (
'torrent' => 'application/x-bittorrent',

));
}
?>
 

Users who are viewing this thread

Top