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 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 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.
By default, WordPress accept a few HTML tags in comments, such as <a>, <strong>, etc… But what if you want to be able to use more HTML tags in WordPress comments? Just read on, I have the solution!
If you’re building a site for a client and they have some problems with some parts of the dashboard, a good idea is to provide contextual help to the client.
The following hack will allow you to add a custom help messages for the blog admin.
By default, the built-in WordPress media manager allows you to filter media by three types: images, audio and video. But if you work a lot with .pdf files, you may need to add an option to filter .pdf files from the media manager. Here is a simple code snippet to do it.