In this plugin
development, we're going to get a look at everything that goes into build a
WordPress plugin. We'll start from the basically by setting up a web server, a
database server and PHP. After we will, we'll install WordPress, and then we'll
look into some of the sample plugins that are with the software.
WordPress Plugins allow
easy adjustment, customization, and development of a WordPress blog. Instead of
changing the core programming of WordPress, you can insert functionality with
WordPress Plugins.
What Can You Expect From
Us?
WordPress
plugin development focused on developers. Initial part of this series will
consist of four parts, where we will learn WordPress Plugin Development from
scratch. Throughout the series we will be developing a WordPress plugin to put
together your favorite jQuery Slider. Final output will be a complete slider
plugin for WordPress, which you use in any part of the CMS.
Let’s
take a look at the 4 parts of the series.
- Understanding WordPress Plugin Structure
- Basics for Creating WordPress Plugin Template
- Integrating Your Favorite Slider into WordPress
- Enhancing WordPress Plugins with Add On Features
Also Read: Wordpress plugins for free to make your website faster
Creating a New Plugin
The
first thing you need to do is create a folder to store your plugin. Go to the wp-content/plugins/ directory
in your WordPress installation and create a folder called my-facebook-tags.
Keep in mind that whatever you name your plugin’s folder will be your plugin’s slug.
A plugin
slug should be unique throughout the WordPress Plugin Repository if you want to
upload it and make it publicly available. What this means is that no other
plugin created by anyone else should have this slug. You can search for
existing plugin slugs easily, just use Google!
Adding Scripts and
Styles
Chances
are that at some point you will want to add your own styling or JavaScript
functionality. This can be done by Enquiring
the asset in question. Enquiring uses actions to add scripts and styles
modularly, taking care of any dependencies in the process.
Conclusion
There
are tons and tons of things you can do with plugins and almost as many ways you
can create them. While I am a very strong advocate of WordPress standards and
doing things just right (object oriented approach, in many cases), I urge
everyone to experiment.
Good
luck with creating your own plugins!