Add extra security to your plugins

/* 
Plugin Name: Plugin Name 
Plugin URI: http://www.wpsnipp.it/plugin-name/ 
Description: A decription is here for your viewing pleasure. 
Version: 1.0.11 
Author: Ethan Allen 
Author URI: http://www.wpsnipp.it 
License: GPL2 
*/ 

/**
 * Prevent this file from being called directly
 *
 */
if (!defined('ABSPATH')) {
	die("Aren't you supposed to come here via WP-Admin?");
}

Add the if statement just below your plugin info section to better secure your plugins. ABSPATH is defined in wp-load.php by WordPress. This prevents someone from calling your plugin files directly without the WordPress environment being loaded.

«