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.
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__ ) ); ?>
In life, finances are inevitable. And more often than not, they can be overwhelming. Having…
The management of a property isn't solely the process of collecting rental. It also involves…
Development and progression are not only essential but often one of the main goals of…
People usually stumble onto the 461 visa when they realise there’s no simple way to…
When you run a brick-and-mortar retail store, you encounter an array of customer personalities. From…
In today’s digital era, people look for convenience, transparency, and genuine rewards from their financial…