Software Engineering in WordPress, PHP, and Backend Development

Tag: WordPress (Page 107 of 219)

Articles, tips, and resources for WordPress-based development.

WordPress Security with Nonce Values

When talking about WordPress security from a developer’s standpoint, it’s inevitable that the topic of nonce fields and nocne values are going to come up. And rightfully so! These are ways to help protect submission information from contaminating our databases.

But are they the way to fully secure our code? Before looking at that, I want to make sure we’re all on the same page as to what a nonce value is. When you look through enough WordPress source code (well, source code in plugins, etc.) then you’re likely to find some developers don’t use them (though they should).

WordPress Security: Nonces in the Codex

Simply defined:

A nonce is a “number used once” to help protect URLs and forms from certain types of misuse, malicious or otherwise. WordPress nonces aren’t numbers, but are a hash made up of numbers and letters.

Nor are they used only once, but have a limited “lifetime” after which they expire.

During that time period the same nonce will be generated for a given user in a given context. The nonce for that action will remain the same for that user until that nonce life cycle has completed.

Though this is the gist of it, there’s more to it than that, and I highly recommend reading the Codex article as it does a good job of outlining what they are, how to use them, and what their purpose is when working with them.

The question remains, though: Are nonces enough when it comes to WordPress Security?

Continue reading

Rapid Application Development in WordPress

Back in the day (as if that was really that long ago for me ;), “rapid application development” used to be a phrase that was used to describe the amount of time we could take an idea and get it into a functional prototype in order to evaluate its utility.

That reads terribly, terribly boring.

Think of it this way:

How fast can you take an idea, turn it into a functional prototype, and determine if it sucks or not?

Or maybe:

In general, RAD approaches to software development put less emphasis on planning tasks and more emphasis on development.

Maybe that fits with more of the cultural norm than, say, 15 years. ago. Anyway, there were tools like Visual Basic that made this easy.

Admittedly, I was a little young to grok what all of this was about, but I read a lot, and I tinkered with Visual Basic from 3.0 up to .NET so I was pretty familiar with the language and how the whole system worked.

But enough of that kind of talk. Here’s the question: How can we apply rapid application development within the context of WordPress?

Furthermore, is it possible to apply it in a way that allows us also to iterate on a product (free or not being irrelevant) without only evaluating its value to our users?

Continue reading

Programmatically Update User Profiles

When you need to update user profiles with code in WordPress, there are two hooks available:

And there’s a subtle difference between the two. If you don’t use the proper hook for the task at hand, then you may not end up with the result you’re expecting.

Update User Profiles in WordPress

The idea for this post is coming based on some work I’ve done on a recent project, and I thought it’d be worth sharing how the two hooks work and when one is preferable over the other (or when you may want to use both).

Continue reading

Pressware Plugins For A Better Blogging Experience

Creating a better blogging experience with WordPress can mean different things to do different people.

I think experts, developers, etc., have a leg up on the rest who want to have a streamlined workflow for how they draft content, respond to comments and generally, work within WordPress more so than the average blogger does.

Maybe I’m way off base. But when I see plugins like Postmatic who are aiming to improve commenting within WordPress and I see projects like Stuttter aiming to create single, useful tools for people who use WordPress, I can’t help but wonder:

I believe something about WordPress affords having a better blogging experience. But what might that look like?

Continue reading

Really Simple SSL For WordPress

SSL for WordPress is one of those topics that’s been a bit of a big deal (at least regarding being a point of discussion) ever since Google announced they were going to be using it as a signal for ranking.

For these reasons, over the past few months we’ve been running tests taking into account whether sites use secure, encrypted connections as a signal in our search ranking algorithms.

If you’re not a technical user, then the idea of setting up SSL on your site has to be a pain. Purchasing a domain, pointing nameservers, and hooking everything up to a hosting account is already enough to get people frustrated (and rightly so).

And though this post isn’t necessarily about setting up SSL (perhaps I’ll cover it in the future as I’m a big fan of Let’s Encrypt for some of my latest projects), it is about arguably one of the best plugins I’ve found for quickly making sure your WordPress site is set up once you have a certificate installed.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑