Archive

Author Archive

WordPress Dev 101: Hooks

August 30th, 2010 Chris K No comments

When I first got into WordPress development, I had no idea how the Core of WordPress was designed. I knew that I wanted my snippet of code to fire at a specific time, but short of hacking it into the theme I was using at the time, I had no clue how to achieve this. It was then that I discovered the Hooks of WordPress. Think of WordPress’ Hooks as the OnRamp to the rendering of your WordPress based site. Your code will sit dormant until the moment the Hook you have ‘Hooked’ fires, then your code will jump in and be executed. Read more…

Categories: WordPress

Change your WordPress domain quickly with Linux, MySQL, and sed

August 15th, 2010 Chris K No comments

You have no idea how hard it was to refrain from using the command ‘sed’ in a totally ridiculous homophoned title. Have you found yourself wanting to change the domain on an established WordPress installation, or even trying to replicate many times over the same exact WordPress database on a different domain? Yeah, me too. I’ve found while doing plug-in development, it helps to have the same database information copied over when I start with a new branch. Luckily, Linux comes to the rescue with the sed command. It’s a 3 step process. Export your source/current database. Search and replace with sed, and then import the database. Here’s a step by step for you.
Read more…

Categories: Tips

How To: Remove the version from WordPress

August 14th, 2010 Chris K No comments

Ok, you’ve read this title and thought, “Why would I want to remove the version from WordPress…in fact, what does he even mean!?”. By default, WordPress (since version 2.5+) includes the version of WordPress you are using in the HTML code of your site, and does not have an option to remove it.

If you view the source code of your site after you’ve loaded it up in your favorite browser you’ll see a line like so:

<meta name="generator" content="WordPress 3.0">

Read more…

Categories: Tips