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

0
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

Tags

Post a Comment

0Comments

POST Answer of Questions and ASK to Doubt

Post a Comment (0)