To keep sneaky evildoers from making changes to your WordPress site, it’s important to check that a given user has permission to make the change they want to make.
Any time you’re using potentially unsafe data, it never hurts to validate and sanitize it. Validating is confirming the data is what you expect it to be. Sanitization is a more liberal approach to cleaning your data.
Whenever you’re rendering data from the database, you’ll want to make sure it’s properly escaped. Escaping helps prevent issues like cross-site scripting.
Add a require statement to one of WP-CLI’s supported configuration files.
When using a RSS feed to deliver content to an email newsletter, you ensure inline images are restricted to a specific width with a little bit of regex.
A helpful checklist you can follow when releasing a WordPress.org.
A short overview of how to sign your request for authentication.
WordPress’ non-persistent groups let you exclude groups of data from Redis or Memcached.
Temporarily modify the $user_login global to contain the email address.
xargs to chain together
wp post generate --format=ids and
wp post meta update.