Well here’s the question whether to use WWW or non WWW url with your domain? Which is better? What’s the impact on SEO? I think it doesn’t matter. But what ever you choose stay with one. Either redirect your www domain to non www or non www to www domain. SEO Perspective From the perspective of SEO […]
Prevent direct access to Plugin file
Recently, I wrote my first plugin called First Comment Redirect. And before that I did a pretty much of research on how to write a secure plugin and there was a code snippet that I found in most of the plugins. The code was this if ( ! defined( ‘ABSPATH’ ) ) exit; So basically […]
Part I: Data Validation and Sanitization in WordPress
Data validation and sanitization comes into action whenever users are allowed to enter data either via forms in Custom Meta Box, Theme Options or any other ways. Although our code seems to work fine without the implementation of data validation and sanitization but it is important to validate the code if you want your data’s […]