Header requirements for new plugin in wordpress

  1. Create a new folder to hold your plugin files and name it using lowercase letters, digits, and underscores only.
  2. Create a main PHP file for your plugin and add a plugin header at the top of the file using the following format:
<?php
/*
Plugin Name: Your Plugin Name
Plugin URI: http://yourpluginwebsite.com
Description: Description of your plugin
Version: 1.0
Author: Your Name
Author URI: http://yourwebsite.com
License: GPL2
*/
  1. Add the necessary comments to describe the purpose of your plugin and how it can be used.