Apraksts
All email providers have a maximum email size. Postmark – for example – have a hard limit of 10mb.
For usability, it’s best not to ask your visitors to do their own image resizing. This plugin will automatically reduce any images (specifically anything which can be edited with the WP_Image_Editor) a little at a time to try and fit the limit.
Uzstādīšana
- Upload the plugin directory
resize-wp-mail-attachmentsto the/wp-content/plugins/directory or install it directly from the WordPress plugin directory. - Activate the plugin through the ‘Plugins’ menu in WordPress
- The plugin automatically starts working – there is no admin or settings screens. See Frequently Asked Questions if you’d like to change any settings.
BUJ
-
How do I change the size limits
-
You can use these filters to customise settings, here the filter names are listed with their defaults.
resize_wp_mail_attachments_max_total_size = 10 (megabytes)
resize_wp_mail_attachments_fit_max_attempts = 5
resize_wp_mail_attachments_fit_reduction_amount = 0.98For exampple, to set the email size to 25mb add code like this to your functions.php:
add_filter('resize_wp_mail_attachments_max_total_size', function(){ return 25; });
Atsauksmes
Par šo spraudni nav atsauksmju.
Autori un izstrādātāji
“Resize WP_Mail Attachments” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.
LīdzdalībniekiTulkot “Resize WP_Mail Attachments” savā valodā.
Vai jūs interesē attīstība?
Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.
Izmaiņu žurnāls
1.2
- Tested on WordPress 6
1.1
- Fixed: Path does not include directory separator
1
- Initial release
