Simple plugin wordpress to make post example

Imefungwa Ilichapishwa Miaka 2 iliyopita Kulipwa wakati wa kujifungua
Imefungwa Kulipwa wakati wa kujifungua

im new on wordpress development,for study purposes I need some help to create this simple plugin:

one text box

one button

Explanation: I insert a value inside a text box. I click on the button and it calls a function that creates a post with:

Title -> Value

Content -> Value

Custom field -> value

Meta description -> Value

slug -> Value

category -> Value

summary -> value

this is my start code:

function magic_creator() {?>

<h2>Magic Post Creator</h2>

<form action="[login to view URL]" method="post">

<input type="text" placeholder="add text.." name="add" required>

<input name="submit" class="button button-primary" type="submit" value="add Post" />

</form><?

}

function magic_creator_menu() {

add_menu_page(

'Magic Creator',// page title

'Magic Creator',// menu title

'manage_options',// capability

'magic_creator',// menu slug

'magic_creator' // callback function

);

}

add_action('admin_menu', 'magic_creator_menu');

?>

With this starting point I can study the code and achieve my ultimate goal.. I need also a check: if the value has already been entered, it gives an error. I thought of storing the value inside the customfield and doing the check as well.

This should be done respecting the security and the right way of developing a plugin.

Thank you

PHP WordPress JavaScript HTML CSS

Kitambulisho cha Mradi: #32189132

Kuhusu mradi

19 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

19 wafanyakazi huru wanazabuni wastani wa €36 kwa kazi hii

evgendob

Hello. WordPress development expert ready to help you with a plugin development. I have more than 400 good reviews and more than 9 years of development experience behind, so all job will be done with the best quality a Zaidi

€30 EUR kwa siku 1
(Maoni 642)
8.2
beeinfo

Hello, I am very interested in assisting you with your wordpress study purpose. I will make sure the textbox content can be added by clicking the button to table. I can do this in less than a day time maximum. I am v Zaidi

€15 EUR kwa siku 1
(Maoni 187)
7.1
niceDev

Hello Sir! My name is Yegor. I am developer with lot expirience in web development. I am ready to start your plugin when you will be ready. With regards.

€30 EUR kwa siku 1
(Maoni 47)
6.8
jeetr007

Hi, I am an experienced wordpress plugin developer and can help you in developing this plugin feature too. Regards, Jitendra

€30 EUR kwa siku 1
(Maoni 34)
5.5
mdjalal404

Hey Do you want create a plugin which has study funationality Are you available for more discussion Thanks Md jalal

€200 EUR kwa siku 7
(Maoni 16)
4.5
naiklancer

Good day! I am available right now to discuss your project! I am efficient WordPress Theme and Plugin Developer. I have developed several themes & plugins to meet the requirements of my clients using my high-level ski Zaidi

€25 EUR kwa siku 2
(Maoni 2)
3.4
joshlui

Clear! I can help you with this and I am ready to start working. This task will be done professionally. Looking forward to have a conversation with you.

€30 EUR kwa siku 3
(Maoni 3)
2.6
AnasRafiq247

Greetings I can surely help you for Simple plugin wordpress to make post example I am in the IT industry since more than a decade and serve so many clients for building and rebuilding websites, software and applicat Zaidi

€8 EUR kwa siku 2
(Maoni 2)
1.8
bannalakhan

Hello I’ve carefully checked your specifications and understand that you need a plug-in to post the value and store them maintaining the security aspect. Basically the scenario of posting an article is that a titl Zaidi

€30 EUR kwa siku 5
(Maoni 0)
0.0