Java, .NET, PHP, PYTHON, ANGULAR, .NET, ML, Data Scince, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

How to create a form plugin in WordPress by code:-


The plugin is used to add dynamic functionality into WordPress which can be reuse-bale into multiple WordPress web applications.

When we want to develop any complex operation or task in WordPress then we always use the plugin.

mostly plugin can download by WordPress.o but if you develop an application for the customer then my suggestion is that you should create a plugin.


in this article, I am providing step by step implementation of plugin development in WordPress.

I am not creating a large plugin but I will explain how really plugin is working.


Step1st:-

Create a folder in WordPress/wp-content/plugins and you can name anything to the folder,i am providing si.

step2nd:-

create si.php file under si folder and write the following code


<link href="&lt;?php echo plugins_url(); ?&gt;/si/css/style.css" rel="stylesheet" type="text/css"></link>


<form action="" method="post">
<input name="txtp" placeholder="enter p" type="text" />
<br /><br />
<input name="txtr" placeholder="enter r" type="text" />
<br /><br />
<input name="txtt" placeholder="enter t" type="text" />
<br /><br />

<input name="btnsubmit" type="submit" value="Calculate" />
</form>

2) create a style.css file under the CSS folder  and write the following code

input[type="text"]
{

height: 50px;
width:555px;
border: 1px solid red;
}
input[type="submit"]
{

height: 50px;
width:155px;
border: 1px solid red;
}


3) create si_admin.php into the same folder


Shorcode of SI plugin is [si] ";







 think that your plugin development task has completed.

bye bye enjoy, if any doubt then ask me at comment

Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post