DO YOU NEED A CONTENT WRITER FOR YOUR BUSINESS?

Your One-Stop Solution for All Content Needs! Click here for more!
Categories: WordPress

Make a simple plugin in WordPress

Share

Plugin is very important role in WordPress and it helps to extend the WordPress functionality and features. Let’s make a simple plugin in WordPress.

For Making a plugin in WordPress you have to do following things:

Step 1: Create a directory in your plugin folder.
Step 2: Then create a PHP file in this folder and start working on that file using below code:

1. Plugin Name: Data Fetch
2. Plugin URI: http://www.namasteui.com
3. Description: WordPress collection data from database using a shortcode
4. Version: 1.0
5. Author: Namaste UI
5. Author URI: www.namasteui.com

Above lines are basic lines which we use in making any plugin.

if ( !defined( 'WP_FD_ABSPATH' ) )
define( 'WP_FD_ABSPATH', plugin_dir_path( __FILE__ ) );

This define the path of plugin directory.

And thus your plugin is ready to use.

Read Also: Make a short code in WordPress

From admin panel’s “DASHBOARD“, click on ‘plugins‘ link.
Under plugins you will find your made plugin. Then activate it.

<?php
/*
Plugin Name: Data Fetch
Plugin URI: http://www.namasteui.com
Description: WordPress collection data from database using a shortcode
Version: 1.0
Author: Namaste UI
Author URI: www.namasteui.com
*/
if ( !defined( 'WP_FD_ABSPATH' ) )
define( 'WP_FD_ABSPATH', plugin_dir_path( __FILE__ ) );
?>
Namaste UI

For any types of queries, you can contact us on info[at]namasteui.com.

Recent Posts

What Skills Do You Need to Become a Full-Stack Developer? A Complete Roadmap

Introduction There is an increasing need for full-stack developers because companies want people who can…

6 days ago

The Enduring Influence Of Classic Russian Literature On Modern Storytelling

Classic Russian literature holds a quiet power that still shapes stories today. Its voice feels…

2 weeks ago

How Small Brands Can Make Physical Touchpoints Feel More Connected

Digital channels often get most of the attention in modern branding. A business can launch…

2 weeks ago

Kraftshala vs IIDE: The Real Numbers on Placements, Fees & Programs (2026)

If you have been researching digital marketing programs in India, Kraftshala and IIDE both keep…

4 weeks ago

Email Marketing That Drives Results: Strategies, Automation, and the Power of Email APIs

Email marketing remains one of the highest-performing digital marketing channels because it gives businesses direct…

4 weeks ago

Benefits of Manual Therapy for Faster Recovery from Muscle and Joint Pain

Pain in muscles and joints can be a problem in everyday life, whether it involves…

1 month ago