Monthly Archives: March 2018

How to configure WordPress SMTP without plugin
23. Mar 2018 17:31 • WordPress • #, #, #, #, #

How to configure WordPress SMTP without plugin

TL;DR: You don’t need a plugin to send WordPress email over SMTP. Define SMTP creds in wp-config.php and hook phpmailer_init in your theme (or a small “must-use” mu-plugin) to configure PHPMailer. Test with wp_mail() or WP-CLI. Why do this? Assumptions: You’re comfortable editing theme files / mu-plugins and have SMTP credentials from a provider. Tested…Read More

Disable WordPress automatically creating image sizes
20. Mar 2018 20:47 • Snippets, WordPress • #, #, #, #

Disable WordPress automatically creating image sizes

Have you ever looked inside the uploads folder of WordPress site and saw a lot of almost the same image files? Do not worry, this is not some malware or anything similar, it’s the default behaviour of WordPress called thumbnails or image sizes. For any larger image you upload, WordPress creates multiple resized versions of…Read More