As a WordPress plugin developer, ensuring the security of your plugin is crucial. One way to do this is to understand and implement data sanitization in your plugin. Data sanitization…
The following steps show how to bulk unlike tweets on Twitter. The process involves running a custom script in the browser debug console. It may work in other browsers, but…
If you've noticed an @ symbol in some PHP code - you're likely wondering exactly what it does. The @ symbol in PHP is an "error control operator" - which…
The following formulas show how to calculate the difference between two dates. The difference can be measured by: days months years days - ignoring years days - ignoring months and…
When you need to run custom PHP code on your WordPress site often you're instructed to add it to the active theme’s functions.php file. The issue with this is that…
When sending emails meta-data in the email "header" explains who sent the email. There are two similar, but quite different, details that when not set correctly can make your emails…
By default WordPress will send emails as plain text using the content type "text/plain". But some plugins, such as Gravity Forms, will send HTML emails. The issue with this is…
A “Must-Use” plugins are special in WordPress - they cannot be disabled and run before any other plugin. Being ran earlier is important when you need to ensure your code…
By default WordPress allows PHP files in the uploads directory to be executed. Under normal circumstances this shouldn't be a problem - but all it takes is for a vulnerable…