Fixing the “[] operator not supported for strings” Error in WordPress Plugins

If you’re developing custom WordPress plugins and encounter this error in your logs: You’re likely trying to append to a variable that’s a string instead of an array. ## The Problem This error commonly occurs when using WordPress filters that expect arrays. Here’s the problematic code: The issue is that some WordPress filters might pass… Read More Fixing the “[] operator not supported for strings” Error in WordPress Plugins

How to Send Emails from WordPress on a Google Cloud Compute Instance

Google Compute Engine does not allow outbound connections on ports 25, 465 and 587. These SMTP ports are blocked by default due to abuse. For sending emails through the Google cloud compute instance Google recommends the following: Relay emails through your G suite(formerly known as Google Apps) account Relay using third party email service such… Read More How to Send Emails from WordPress on a Google Cloud Compute Instance

3 Quick Easy Steps To Speed Up your WordPress Site Now

Optimizing your WordPress powered website is a continuous process. It depends on how heavily customized your WordPress site is, luckily the out of the box the theme I installed ranked average. Check your site at Think With Google or GtMetrix to get baseline of where your current website stands. This is my baseline stats. I started with these and… Read More 3 Quick Easy Steps To Speed Up your WordPress Site Now