Tom McFarlin

Software Engineering in WordPress, PHP, and Backend Development

Page 204 of 427

How To Save WordPress Submenu Page Options

If you’re using functions such as add_menu_page or add_submenu_page to create pages in the WordPress dashboard, it’s pretty easy to get something up and going, but what if you’re looking to actually save WordPress submenu page options?

Submenu Page Options

That is, let’s say you’re creating a page in the dashboard that’s tied to a new menu item – perhaps something that’s being added to the Tools menu – and you want to display some options among some other text or some other element or set of elements that you’re displaying.

It’s completely possible to use the Settings API to do exactly that, but it may also be a little heavy-handed for saving a couple a small set of options.

Luckily, WordPress has a hook that’s available that makes it pretty easy to save information like this that’s completely usable outside of the Settings API.
Continue reading

How To Remove WordPress Meta Boxes

Out-of-the-box, the meta boxes that WordPress displays on the dashboard aren’t exactly overkill. I mean, if you’re a blogger, then I think the chances are strong that you’ll need:

  • Publish
  • Categories
  • Tags
  • Comments
  • And maybe the Excerpt feature (depending on your theme)

But if you’re building a solution for someone else where that information is irrelevant, wouldn’t it be worth removing the WordPress meta boxes to make the dashboard a little bit cleaner with less irrelevant options?

Continue reading

jQuery is Undefined

For those who have been in web development for sometime – especially those who have seen the rise (and stuck with) jQuery – then you’re likely all too familiar with some of the potential errors messages that you may see when working with the library.

But if you’re someone who is just starting out and perhaps you’re learning JavaScript and/or jQuery and you’re getting familiar with the developer tools that ship with your browser of choice, you’ve got your plate full of things that you’re having to debug.

jQuery

And sure, Google is your friend and being able to ask questions on sites such as Stack Overflow and other similar sites is nice (though the community may not always be such), but it’s not always fruitful.

In those cases, I think those of us who have gone down the same road that you’re traveling have some obligation to help educate what the problem is, why it’s happening, and how to resolve it.

And that’s what I’ve tried to to do in my most recent article for Envato.

Continue reading

Being a Pragmatic Programmer in WordPress

One of the things that I’ve begun to think about as I move through my career in development is what it means to be truly pragmatic about the work that I do.

But first (and no, this is not an affiliate promotion), I think it’s worth noting that The Pragmatic Programmer is a book that I think every person who is a developer of some sort should reading (maybe several times, even). It’s an easy read and brings up a lot of good points as it relates to being the best programmer that you can be as it relates to best practices (whatever that may look like for your slice of the industry).

Anyway, I’ve talked about the tension of having to stay on top of every new technology that’s released as well as the importance of going deep rather than wide as it relates to the work that we’re doing on a day-to-day basis.

Continue reading

Experiences in Growing a Business in WordPress

Self-employment, freelancing, and/or contract work can be a funny thing especially if you’re a one man shop. I think that the freedom that comes with working alone has its benefits – I mean, you’re running the whole show – but it also has its drawbacks – you’re running the whole show.

By that, I mean when it comes to working on contracts for others, there’s a lot of satisfaction to be found is providing solutions for them, but it’s also a lot to juggle behind-the-scenes (payroll, accounting, expense reports, etc.).

And yes, I absolutely recommend finding people who are skilled in that area and then paying them to take care of that stuff for you (after all, it’s what they like to do) so that you can focus on what you like to do.

But that’s just one aspect of what it means to running your own business and it’s not the aspect that I’m interested in talking about right now.

What about the part where you start growing your business? Or the part where you’re looking to partner up with someone else or have additional contractors or employees come on board so that you can expand what it is that you offer?

As exciting as that can be, it also carries its nuances, as well.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑