WordPress Plugin Header Requirements

, ,

Here is the code sample of what is required for developing a plugin.  This needs to go into the main php file within the plugin folder.

Plugin Name:  WordPress.org Plugin
Plugin URI:   https://developer.wordpress.org/plugins/the-basics/
Description:  Basic WordPress Plugin Header Comment
Version:      20160911
Author:       WordPress.org
Author URI:   https://developer.wordpress.org/
License:      GPL2
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  wporg
Domain Path:  /languages

Header Requirements

As described in Getting Started, the header comment is what tells WordPress that a file is a plugin. At a minimum, a header comment must contain the Plugin Name, but several pieces can – and usually should – be included: Plugin Name: (required) The name of your plugin, which will be displayed in the Plugins list in the WordPress Admin.


Posted on

April 26, 2018

Submit a Comment

Your email address will not be published. Required fields are marked *