Category: Back-End Development
Three Tips for Writing Airtight PHP Conditions
In PHP, conditions are the core of conditional statements such as if-statements, and of certain other control structures like while() loops.
How to Prevent Browser Caching of a CSS Stylesheet in WordPress
This video and text Quick Guide explains how to prevent browser caching of CSS files in WordPress. The CSS cache busting tricks here will work outside WordPress, too: you’ll just need your own method of adding query strings.
How to Use FTP to Deactivate a Plugin That’s Breaking Your WordPress Site
In this text and video Quick Guide, we’ll explain how to deactivate a WordPress plugin via FTP.
A Thorough Introduction to PHP Arrays
The goal of this article is for you to thoroughly understand PHP arrays. We’ll cover what they are, and highlight a few less-known things that even experienced PHP developers may not have known or realized.
Changing How Your WordPress Post Titles Appear: A First Filter Hook Tutorial
This Quick Guide covers how to use code to change your WordPress post titles. This is separate from manually changing one or more WordPress post titles, which you can do without code. Instead, it’s the kind of thing you’d want to use to change something about a lot of post titles at once, like adding “(Sale!)” in front of all 200 products in a product category.
get_queried_object(): How and Why to Use It
WordPress’s get_queried_object() function has the distinction of being, I think, the most useful core function in WordPress that I didn’t know about for the longest time.
Learning PHP: Concatenate Strings and Variables Efficiently
A slightly weird term you’ll hear people use around PHP: “concatenate.” I still remember the first time I heard that word, having no earthly idea what it meant. It turns out it was a common and useful task in PHP: join two strings together so that we get a single string or something that we can echo to the screen.
Cool New PHP 7 Features for WordPress Developers
PHP has changed a lot in the last few years. And even before that, it had changed a lot. In short, modern PHP is a great and cool language, with only a few of the worst problems that people who last used it a decade age will remember. (Modern) PHP 7 and WordPress haven’t really gone together historically.
Learning PHP for WordPress Development: while() Loops
Welcome to this discussion of PHP loops: what loops are, whey they’re important, and how to use PHP while() loops. This article continues our series explaining the basics of PHP for WordPress development.