The plugin header is the only requirement for a plugin to function in WordPress. The plugin header is a PHP comment block located at the top of your primary plugin PHP file. This comment block tells WordPress that this is a valid WordPress plugin.
Write the following code in your Sample wordpress header plugin file myPlugin.php:
<?php /* Plugin Name: myPlugin Plugin URI: your url addredd Description: my first wordpress plugin WordPress admin interface Version: 1.0 Author: you naem Author URI: License: GPLv2 */ ?>
As you can see, the plugin header is straightforward. The only required line for WordPress to recognize your plugin is the plugin name, but it ’ s good practice to fill in the entire header as shown. The plugin will be shown at administration panel as :
You can activate this plugin from here but right now it does nothing.