Hashtag Systems | How to create a WordPress Plugin in easy steps
post-template-default,single,single-post,postid-10061,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-3.4,wpb-js-composer js-comp-ver-5.5.4,vc_responsive


How to create a WordPress Plugin in easy steps

Blogs, eCommerce   |  

WordPress is most-deployed content management system on this world. There are lots of reasons that it is so popular: it is easy to use, easy to host, free, and open source. WordPress is extremely extensible. With a plugin, you can add endless functionality to your site.

Let’s have a sneak peak into wordpress plugins. A plugin is a piece of software containing a group of functions that can be added to a WordPress website. By using any combination of PHP, JavaScript /jQuery, HTML, CSS, or any other language, a plugin can add new features to any part of your wordpress website, including the Admin Control Panel.

There are lots of high-quality free and premium WordPress plugins available. But, sometimes, you need something custom. Building a WordPress plugin gives you the ability to make exactly the features you need for your site.

If you have a little bit of coding background, or are willing to learn some PHP, building your WordPress plugins isn’t that difficult. It’s easier than you’d expect! Now we check what is basic steps we need to follow while creating plugin.

Step 1 :– Create a folder called Example. [ It’s important to know that there is no restriction on naming the plugin folder.]

Step 2 :– Create a file called example.php inside your plugin folder.

Step 3 :– We have to add a PHP comment in predefined format on top of the file to make it a WordPress plugin. Open the example.php file and insert the following PHP comment.

  • Plugin URI – Explains the details of the plugin and available download options. This isn’t mandatory and you can keep it blank, if you don’t want to make it publicly available.
  • Description – Explains summary of functionality of the plugin.
  • Version – Defines the version and you can use any numbering format as you wish. Plugins need be upgraded with each WordPress version upgrade. Therefore it’s good to give a proper version numbering even though it’s not compulsory.
  • Author and Author URI – Explains details about the developer of the plugin.
  • License – is used to define the conditions for using this plugin. We can include standard licence such as GPL2 or just mention something we prefer such as Free to use

About commented code will inform WordPress to consider it as a plugin. Now we have our first WordPress plugin 🙂  

Now you can write the code /functions according to your needs. Administrator can login to your WordPress account and click on Plugins tab on the left panel of dashboard to get a list of available plugins. 

Plugins will be on inactive status by default. We can click on the activate link under the plugin name to activate the plugin. Once the plugin is successfully activated, its features will get affected to your website.


Now we can create a page to display when you click on your admin panel link. Go to the includes subfolder and create a new PHP file named mfp-first-acp-page.php. (Since we are only using HTML, PHP opening tags aren’t required in this file.) Write the HTML mentioned below, and upload the file.

Go to plugin list in the WordPress Admin Control Panel and activate the plugin. Once the page loads, look at the bottom of navigation menu. We can see a new link named ‘My First Plugin’. Click it, and you have your own admin control panel page! Hooray !

As a site administrator, we  can install/uninstall plugins from the admin area. You can also download and manually install them using an FTP client. Plugins never automatically get overwritten or deleted when installing WordPress updates. If you want to fix the bugs, you can usually just deactivate it in the Admin Control Panel while you fix it.

WordPress plugins are a quick and easy solution to bundle up  your site with additional functionality such as social integration,blogs, video integration, breadcrumbs, Google Maps, etc. If you are not familiar with managing plugins, you will need the support of a wordpress experts team, like Hashtaggers, who is capable of providing both design and development tasks. Hence you can keep clients from going from you and go looking for another developer.

« | »
No Comments

Post A Comment