Google+ is a new service from Google, which can bring traffic to your blog just like other social networking sites as such as Twitter or Facebook. Today, I’m going to show you a simple piece of code to automatically add a Google+ button to your posts.
Search Results for "hook"
By default, WordPress embed images in <p> tags. This is a good thing in most cases, but in case you don’t want those p tags to show, here is a great way to remove theme without having to hack the WordPress core.
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.
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!
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.
WordPress adds a lot of stuff through wp_head() hook included in most WordPress themes. Some of this stuff is useful, but some other isn’t. Here’s a quick recipe to clean up the wp_head() easily without using a plugin.
WordPress has a little tab in the top-right corner that, when clicked, drops down some contextual help. Here is a super useful function to hook different help text to different pages.
When creating a WordPress site for a non tech-savvy user, it can be very useful to be able to display a custom message on the post editor page. Here’s a very simple hook to do it.
If for some reason you don’t like to see the “plugins” and “other news” dashboard widget, here’s a way to remove them using some easy WordPress hooks.
When developing a plugin or theme, it can be useful to be able to programmatically create a directory within the wp-content/uploads folder. Here is a handy piece of code to do it.