Tom McFarlin

Software Engineering in WordPress, PHP, and Backend Development

Page 142 of 428

WordPress Menu Page (And Submenu Pages, Too!)

A WordPress menu page is something that’s easy to introduce thanks to API functions like add_menu_page. On top of that, it’s easy to add submenus using add_submenu_page.

But if you’re working with the plugins_loaded hook or a plugin bootstrap file, then trying to introduce a WordPress menu page (along with any related submenus), you may end up with some unexpected results.

Custom WordPress Menu Page: A reference to plugins_loaded.

The plugins_loaded documentation in the code reference.

Specifically, you may find that your menu and submenus display fine, but they don’t work when you click on them to navigate to the relative page.

Continue reading

Development Tools for WordPress: The Industry’s Ego

Development tools are easy to come by these days. In fact, I think it’s harder to choose what to use than anything else. Never before have we had so many choices especially when it comes to the web.

Development Tools: Programming Languages

Just some of the popular programming languages, let alone tools.

Yesterday, I talked a bit about how there’s a particular breed of developers who love to get on their soapboxes and talk all about their superiority because of the development tools they use. If you haven’t read it, you can, but it’s not necessary for this post.

However, I will state that this is Part 2 of what I wrote yesterday. I even said:

Originally, I had this written as a single post, but it got a little long, so I’ve opted to split it into two pieces.

And I know: Yesterday was less about development and more of a critique of the nature of our industry. I try not to write too much about that, but there are times for exceptions. That was a time.

This one is not.

Continue reading

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

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑