• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Tips and Tricks HQ

  • Home
  • Blog
  • Projects
    • All Projects
    • Simple WP Shopping Cart
    • WP Express Checkout Plugin
    • WP Download Monitor
    • WP Security and Firewall Plugin
    • WP eStore Plugin
    • WP Affiliate Platform
    • WP eMember
    • WP Lightbox Ultimate
    • WP Photo Seller
  • Products
    • All Products
    • Checkout
  • Support
    • Support Portal
    • Customer Only Forum
    • WP eStore Documentation
    • WP Affiliate Software Documentation
    • WP eMember Documentation
  • Contact

How to Begin Creating a WordPress Plugin

You are here: Home / Video Tutorial / How to Begin Creating a WordPress Plugin

Last updated: November 12, 2017 by Keith Lock





Creating a plugin extends the power of WordPress. Follow along with this tutorial for a quick beginner’s course on how to begin the process of creating a custom plugin.

In this tutorial, you will be introduced to:

  • Why creating a custom plugin is a better choice over modifying core theme, plugin, and WordPress files.
  • Why creating a custom plugin is generally a better choice over creating custom functions in the functions.php file of a theme.
  • How to install the Pluginception Plugin and use it as a very quick, simple way to create a custom plugin.
  • How to start the creation of a plugin and what the minimum requirements are.
  • How to delete the Pluginception Plugin after using it, if desired.

Resources discussed in the video:

  • Pluginception Plugin



It is considered bad practice to edit core files of themes, plugins, and of WordPress itself.

Filter and action hooks are often included to prevent the need for this.

If modifying core files, the changes will be lost when the core files are updated with feature updates or important bug and security fixes.

One way to include custom functions is to modify the functions.php file of a parent or child theme.

Of these 2 choices, it’s better to modify the functions.php file of a child theme.

However, if you ever switch themes, the custom functions will be lost.

In some cases though, this won’t matter if the custom functions were only used to modify the functionality of that theme.

Other times, for writing functions to do things like including custom fields in your posts, it’s best to write a custom plugin, because for that type of functionality… you will want to retain it regardless of the theme being used.

I really like the simplicity of using the Pluginception plugin to create a custom plugin. It prevents the need to interact with the File System using FTP, and comes with a template for a basic function.

For that reason, I am going to show you how to use that plugin to create your own plugin.

Let’s get the Pluginception plugin installed now.

  1. To install Pluginception, from your WordPress Dashboard, go to Plugins, then Add New.
  2. Do a search for Pluginception.
  3. Click Install Now, then Activate.

Now, a new menu option below Plugins will be created to allow you create a new plugin.

Let’s go through the quick steps for starting the creation of a new plugin.

  1. From your WordPress Dashboard, go to Plugins, then Create a New Plugin.
  2. Give your Plugin a name.
  3. Click the Create a Blank Plugin button.

That’s really all there is to the minimum requirements for a plugin.

Here you would paste in some functions that may have normally been suggested to use within the functions.php file of a theme.

After adding in your functions, save the file to see your customizations in action.

When you are done with Pluginception, you may want to delete it.

If so, follow the quick steps below.

  1. From your WordPress Dashboard, go to Plugins, then Installed Plugins.
  2. Click the Deactivate link below Pluginception.
  3. Then click the Delete link.

You should also watch our other create a WordPress plugin video tutorial where you will learn some additional plugin creation techniques.

Related Posts

  • How to Create a WordPress plugin
  • WordPress Action Hooks and Filter Hooks – An Introduction
  • A Brief Introduction to WordPress Nonces
  • WordPress Plugin – Cite the Source for Images Attached to Your WordPress Posts

Video Tutorial,  Web Development,  Wordpress creating WordPress plugin,  plugin,  wordpress developer tutorial,  WordPress tutorial

Reader Interactions

Leave a Reply

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

Primary Sidebar

Featured & Popular Articles

Video Answers to Top WordPress QuestionsWordPress Optimization Tips and Tricks for Better Performance and SpeedEssential WordPress Security Tips - Is Your Blog Protected?WordPress Simple PayPal Shopping Cart PluginTop 15 Search Engine Optimization (SEO) Techniques I Forget to DoList of the Best and Must Use WordPress PluginsHow do I Start a Blog and Make Money Online?Good Domain Name Picking Tips for Your Blog SetupFind Out Which WordPress Web Hosting Company Offers the Cheapest and Reliable Web Hosting Solution

Featured WordPress Plugins

wordpress estore plugin
wordpress membership plugin
WP Express Checkout Plugin
WordPress Lightbox Ultimate Plugin
WordPress photo seller plugin
wordpress affiliate plugin

Recent Posts

  • Accept Donations via PayPal from Your WordPress Site Easil [...]
  • Buy Now Button Graphics for eCommerce Websites [...]
  • Subscription Button Graphics for eCommerce Websites [...]
  • Adding PayPal Payment Buttons to Your WordPress Sidebar Ea [...]
  • PayPal QR Codes [...]

Comment & Socialize

  • @Rodrigo Souza, Thank you f ...
    - admin
  • The example for 'slm_add_ed ...
    - Rodrigo Souza
  • @Ron, All the valid transac ...
    - admin
  • Hello, when people have sel ...
    - Ron
  • We have hte following featu ...
    - admin

Check out our solutions

View our WordPress plugin collection and start using them on your site.

Our WordPress Solutions

Footer

Company

  • About
  • Privacy Policy
  • Terms and Conditions
  • Affiliate Login

Top WordPress Plugins

  • Simple Shopping Cart
  • PayPal Donations
  • WP Express Checkout
  • WP eStore
  • WP eMember

Blogging Tips

  • How to Start a Blog
  • Selecting a Good Domain
  • Cheap WP Hosting
  • WP Video Tutorials
  • Simple SEO Tips

Search


Keep In Touch

Copyright © 2023 | Tips and Tricks HQ