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
max_execution_time = 180 | |
max_input_time = 300 | |
max_input_vars = 10000 | |
memory_limit = 256M | |
upload_max_filesize = 128MB | |
post_max_size = 128M |
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
# Block WordPress xmlrpc.php requests | |
<Files xmlrpc.php> | |
order deny,allow | |
deny from all | |
</Files> |
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 | |
/* | |
* Plugin Name: Pont shipping for Woocommerce - Add custom Prefix | |
* Plugin URI: https://rotisoft.hu/bovitmenyek/ | |
* Description: Szathmari Andor WC-PONT Sprinter rendszernel elotag hozzadasa, hogy SprinterPartnerPortalon egyes webshopok rendelesei elkulonithetoek legyenek. | |
* Version: 1.0 | |
* Author: Rottenbacher RotiSoft Tamas | |
* Author URI: https://rotisoft.hu/ | |
* | |
* Requires at least: 5.7 |
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
/** | |
* Add that code to your theme functions.php file. Choose or modify which file/mime type need and delete the others. | |
* Replace the file type. More info: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types | |
* Gist by Tamas Rottenbacher | |
* Source: https://wpsmackdown.com/add-remove-filetypes-wordpress-media-library/ | |
*/ | |
function approve_mime_types($mime_types){ | |
$mime_types['rar'] = 'application/x-rar-compressed'; // Approve .rar file upload | |
$mime_types['bmp'] = 'image/bmp'; // Approve .bmp image upload | |
$mime_types['svg'] = 'image/svg+xml'; // Approve .svg image 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
/** | |
* Add that code to your theme functions.php file. Choose or modify which file/mime type need and delete the others. | |
* Replace the file type. More info: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types | |
* Gist by Tamas Rottenbacher | |
* Source: https://wpsmackdown.com/add-remove-filetypes-wordpress-media-library/ | |
*/ | |
function disable_mime_types($mime_types){ | |
unset($mime_types['bmp']); // Disable .bmp file upload | |
unset($mime_types['tiff']); // Disable .tiff file upload | |
return $mime_types; |
OlderNewer