It’s time for a confession. Yes, I teach coding, design, development, WordPress, business development and many other topics over at WebDesign.com. But there are many times I’m working in the code when I can stare for hours trying to figure out why the code is doing something it shouldn’t be doing. In fact, this picture is a perfect example of part of my day yesterday.
The New Year is Here!
I wanted to take a brief moment to talk about a few projects and things I’m working on for 2014. Many of us try to make New Year’s resolutions every year, but when we fast-forward 3-4 weeks, most of the resolutions have already been dropped. This new blog has the purpose of keeping me on track.
A brief overview of several goals of mine for 2014…
Write my own Markdown-based flat-file CMS. It will be called SimpleKit and have a simplified markdown editor to write pages and posts. This site will be ground zero of the development.
Write a WordPress-focused technical book.
Finish writing my pulp fiction thriller book Deadman. I will work on finishing the final draft during the first quarter of the year and then look at publishing options afterward.
The new year is almost here and I’m sitting up waiting to ring in the next chapter in my life. Thinking about all that has been done the past year and all the things I hope to accomplish in the coming year. Tomorrow, I will have an update talking about a few of these new ideas and projects.
How many management speak phrases have I packed into the following paragraph? Do you know people who use this as their attempt at being managerial? Too often we try to “talk the talk” to give the impression that we are more competent that we actually are capable of being at that time. If business leaders and entrepreneurs stop trying to force the latest “power words” or “buzz phrases” and get down to using REAL and descriptive language, maybe there is a chance that more innovation and opportunities will be achieved. Starting today, I’m making it a focus not to use these phrases and be more descriptive with tasks and objectives. Actually getting things done is much more valuable than being able to throw around $5 buzz words.
Before going forward we have to touch base and reach out to our key stakeholders so that we can drill down into the key issues that are not yet on our radar and catch the low-hanging fruits. We will move the needle with this positive momentum by thinking outside the box as we dive deeper while keeping our eye on the ball and running the numbers. By the end of the day I will have gone back to the drawing board and gotten the ball rolling by placing the impetus of closing the deal on my plate. This will be a complete paradigm shift that will bring our company more bang for the buck and by adding value it will be a win-win situation as we move the goal post of our ecosystem resulting in a game-changing platform. So, all hands on deck because the rubber is hitting the road now.
The moment you start digging the tiniest bit under the surface of WordPress in your attempt to either tweak your website or create a theme or plugin, you will come face-to-face with WordPress action hooks. The common question among people who are going deeper with WordPress is what are action hooks and how do I use them? So this post will answer those two questions, plus give you a boost up in your WordPress development pursuits.
What are WordPress Action Hooks?
At the very basic level, action hooks are placeholders. They are specific locations in your WordPress theme that allow functions/code/etc to hook into. The most basic examples of a action hooks, that normally exists in every single WordPress site, are the
wp_footer action hooks. Both of these are placeholders that are located at… (you guessed it)… inside the header of the theme and in the footer of the theme. Typical uses of these two action hooks are to place analytic tracking codes or to add some additional CSS files to a WordPress page.
In a nutshell, an action hook is a predefined place on your site left open by the developer of the site where the user/developer can insert specific code to expand the capability of the site.
How do you use an Action Hook?
Let’s use an example of adding some additional meta tag descriptions to the
section of our WordPress site. Because an action hook is just a placeholder, we need to create a function, a piece of code that will run in that action hook location. Our sample function will add a meta tag description to our WordPress site.