Disabling Comments

When we don’t want any comments in our site we can use the “comments_open” filter to disable the comments for every post and pages.

Simple Example of implementing Walker_Nav_Menu Class

In reference to the WordPress Codex, the Walker class was implemented in WordPress 2.1 to provide developers with a means to traverse tree-like data structures for the purpose of rendering HTML. The detail information about the walker class can be found in the WordPress Codex. Here is a simple example.

In the above block of code, the wp_nav_menu() function takes $defaults as […]

Hook into Contact Form 7

Contact form 7 is a really amazing WordPress plugin developed by Takayuki Miyoshi available for download from http://wordpress.org/plugins/contact-form-7/ Some key features of contact form 7 are: Ajax Form Submission Multiple form Captcha Spam Filter Multilingual and many more. [gad] I am assuming here that you are familiar with Contact Form 7 or have used this plugin at least once […]

Check where function is defined

To find out where the function is being defined, you can use the ReflectionFunction object. The ReflectionFunction class reports information about a function.

Cannot display special characters

We have to work with various types of data everyday. We save data, retrieve them, modify them. Sometimes, we have to work with special characters like below.

And when we try to print these special characters, all we get is

Now, this is not what we want to be displaying in the screen. […]