Tom McFarlin

Software Engineering in WordPress, PHP, and Backend Development

Page 132 of 428

WooCommerce Menu, Part 2: A WooCommerce Page

In the previous post, I walked through the process of adding a custom WooCommerce menu to the My Accounts page. It’s straightforward enough, but if you’re creating a custom menu item, then you’re likely going to need a custom WooCommerce page.

That is, you’re going to want to have a page that corresponds to the menu item so that people who are logged into your store can view something related to the custom menu item that’s been added.

Adding a Custom WooCommerce Page

Granted this isn’t always the case, but if you’re adding a custom menu, the odds are you’re going to be adding a custom WooCommerce page. The thing is, WooCommerce expects these pages – which are actually templates – to reside in a specific location.

And if you’re distributing a plugin for others to use, making sure the template is in the right place should be done programmatically.

Continue reading

WooCommerce Menu, Part 1: Adding a Menu

I’ve written a few posts about some of the work I’ve done with WooCommerce over the last couple of months, but one of the things I’ve yet to cover is how to add a custom WooCommerce menu.

WooCommerce Menu: Adding a custom menu.

Using Google or Stack Exchange or some other bloggers will yield some solid results, but my situation is two-fold:

  1. Introduce a new video menu item,
  2. Create and display a custom template for the menu.

The latter is a little more complicated, so I’ll cover it in a follow-up post, but the former is something to be covered in a post all its own.

Continue reading

What Is Development? Building and Constantly Learning

For a given project, you’ve likely heard that whole spiel about you have:

  1. Time
  2. Budget
  3. Performance

Then you tell a person to pick two. In my experience, this tends to be true, especially when working with tight constraints or smaller budgets. And that’s okay! It’s not a complaint and that doesn’t mean we can’t still do a job well done given said constraints.

But this post is not about that (although it might be fun to discuss). Instead, it’s about a follow-up question that I’ll occasionally get around this same topic:

Once you’ve landed the project, what is development? How do you know how to solve problems for different people?

And I think, at first, it’s an interesting question. I mean, if we all went into a project not knowing what we were doing – regardless of the industry – then that’s a little scary.

In programming it’s its own beast, isn’t it?

What is Development?: It's its own beast.

Anyone remember The Neverending Story?

I mean, we know what the client wants and we know we can build it, but how do we express that we don’t necessarily yet know the code we’re going to write or how we’re going to write it?

Continue reading

Versions App For WordPress Plugins

Versions App is one of those Subversion clients that’s been around for years. In fact, when I moved to Mac, it might have been the first one I tried.

Versions App For WordPress Plugins

I liked it, too. It did what I needed it to do, it did it well, and it was simple. And that last part, simplicity, is something that I really want out of software these days.

Maybe I’m getting old. Or maybe I’m developing better taste. I’m going to go with the latter one for this.

Anyway, for some time I ended up using a slightly more advanced client that had a wider range of features, and that did some really good stuff as far as Subversion is concerned. But over time, I’ve migrated further and further away from Subversion.

And in doing so, I’ve begun to re-evaluate my tools (as one should do from time-to-time).

Continue reading

WordPress Plugins For Development (As Of Today)

In the previous post, I shared the 10 (well, 11 if you count Slack., but I think that’s debatable) tools I currently use for WordPress development. But I also said that I’d cover the tools I use within WordPress – or WordPress plugins for development – that I use when working on a project.

WordPress Plugins For Development

If you’ve read this blog for any length of time, then you’ve likely heard me talk about some of these at one point or another, but having them all captured in a single post can be useful especially when I want to refer others to them.

So this is the short list of plugins that I’ve found to be useful when building projects both for myself and for others.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑