8 articles found for: hook

Post Pic

Add a favicon to your WordPress blog using a hook

Nowadays, any serious blog have its own favicon. To add yours into WordPress, you can directly edit header.php or you can use a more clean technique, using the power of WordPress hooks.

Post Pic

Using Cron to schedule events in your WordPress blog

You probably know that WordPress can schedule events. In this recipe, I’ll show you how you create an event that will be executed once hourly, or daily, etc.

Post Pic

WordPress hook: Disable posts auto saving

WordPress have a very useful function that autosaves your posts while you’re typing them in the dashboard. Though, if for some reason you’d like to disable this function, it is very easy to do. Just read on!

Post Pic

Replacing the “read more” link on your WordPress blog

The “more” tag is indeed very useful in WordPress because it allow you to define a portion of post to be displayed on your blog homepage. Though, the problem with the “more” link is that you can’t change its text. Excepted if yoou apply this recipe.

Post Pic

List all hooked WordPress functions

WordPress hooks are very useful because they allow you to “surcharge” an existing WP function with your own code. But when things goes wrong, it should be useful to be able to list all hooked WordPress functions. Here is the code to it.

Post Pic

How to: Integrate files on your blog header

When developping a WordPress plugin or widget, you sometimes need to add files as such as CSS or Javascript in the theme header. But how to do it when you can access the theme file? Here’s a simple way to add anything in the blog header without editing header.php.

Post Pic

Jamie asked: “How can I display comments and trackbacks separately?”

Jamie, a Cats Who Code regular reader who maintains a technology related blog, asked me how I managed to separate comments and trackbacks on Cats Who Code.
Let’s see how the get_comment_type() function make it so easy.

Post Pic

How to get rid of curly quotes in your WordPress blog

Ah, curly quotes. They look nice, but they’re also such a pain if you display code on your blog, or copy/paste it from another blog. Here’s a very simple recipe that I urge you to use if you display code on your blog. Your readers will say thanks you!