Software Engineering in WordPress, PHP, and Backend Development

Tag: WordPress (Page 82 of 219)

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

Software Development Soapboxes: The Industry’s Ego

Software development soapboxes is a term that I use to describe whenever anyone tries to posit themselves as a superior developer because they use different tools than you.

Software Development Soapboxes

Why, yes, my pipe is superior. Please hush and allow me to explain why.

For example, I just talked about my return to MAMP. It’s an option that we have, clearly.

Vagrant, Trellis, VVV, and other options are popular when it comes to building advanced solutions on WordPress. So when I wrote about my move back to MAMP, I expected some pushback or some argument(s), though I didn’t get any.

Perhaps no one cares, perhaps I’m writing into a void, perhaps everyone agrees with me (which is likely the case 😇), or perhaps it’s not worth talking about it.

I’m kidding, of course. Instead, I did receive one tweet that resulted in a great conversation. And I mean that non-sarcastically.

@fgacv asked:

And I think it’s a fair question especially because anyone who writes software in WordPress is likely to come across these (among many other) solutions, possibly evaluate them, and then find the one they like most.

Continue reading

MAMP 4 For WordPress Development

MAMP 4 was released recently, though, at the time, I was busy experimenting with Pressmatic. I think Pressmatic is a strong piece of software, though, for my day-to-day workflow, it doesn’t fully suit my needs.

So I returned to MAMP, and I’ve been thoroughly pleased with MAMP 4.

MAMP 4 Homepage

No, it doesn’t use a lot of the same technology some other applications do (such as virtual machines), but I’ve not found that to hinder the work I’m doing.

Continue reading

Custom Admin Pages in WordPress

Custom admin pages in WordPress are one of those things that aren’t often needed if you’re using something like the Settings API, the add_menu_page function, or a similar API function.

And in many, if not most, cases all of the above suffice; however, there are times where you need more control over what’s displayed to the user, how the input is handled once it’s submitted, and then what’s returned to the user after the data has been saved to the database.

In those cases, it’s helpful to know how to write custom admin pages in WordPress and all that comes with it – from sanitization, custom error messages, validation, and page redirection.

Continue reading

Using WordPress Hooks Differently

Using WordPress hooks is one of those topics that you hang around any Slack channel forum, email thread, Twitter conversation, or whatever and you’ll find that understanding them and using them correctly is key to working with the application.

Using WordPress Hooks

But if there’s one thing that I get obsessive about, is using the right hook (as opposed to the left hook 🙃).

Sure, that reads weird, but look at it this way:

  • each hook offers a variety of parts of the application available at a given time,
  • and each hook is given a specific name.

So it would stand to reason that we try to hook our functions into the hook that’s most closely aligned and appropriately named for our particular requirement, right?

Continue reading

WordPress Ajax Responses in JSON

WordPress Ajax responses are things that I’ve written about several times in the past (and it’s because I do a lot of work with Ajax in WordPress and because I often see other code that uses it in a variety of ways).

WordPress Ajax Responses: Implement a client-side call.

Implementing a call to the server from the client-side.

Of course, I’m not trying to set a definitive way to using WordPress, Ajax, JSON, and so on; otherwise, I wouldn’t spend my time writing posts about it, but there are things that I think are important to cover if for no other reason than to serve as reminders both to myself and those reading.

In the last year, I’ve written:

  1. Ajax in WordPress: A Strategy For Error Codes
  2. Writing a Custom Protocol for Ajax Responses
  3. An Example of the Ajax API

And sure, some of the above posts are a bit out of date. All the more reason to write updated content, right?

Since I recently finished a series on implementing custom protocols, I thought it important to also remember that there are already ways to send WordPress Ajax responses if you’re looking for something a bit simpler.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑