How to create plugin in wordpress

Creating First PlugIn


To create a plugin in wordpress first you need to create a folder in wordpress plugin folder.

Wordpress plugin are located in wp-content/plugins folder. Open plugin folder and create new folder.

Example: my_first_plugin

Then create a plugin file name that contaning plugin information like plugin name, author, etc

Sample code for plugin ( file name is my-first-plugin.php )

<?php

/**

* Plugin Name: My First Plugin

* Plugin URI: https://@/

* Description: My First Plugin.

* Version: 4.2

* Author: #

* Author URI: http://#/

**/


All above steps are done as well goto wordpress dashboard and goto plugin page
Now you can able to see the "My First Plugin" plugin in the plugin list

Enjoy!

Related Post


Latest Post


Recent Posts Widget

Make sure to never miss a thing...

Get the latest news from the creative industry along with other creative goodies, conveniently delivered to social media.