How to create a custom wordpress plugin


I’m learning plugin development and need to create a plugin that contains:

  1. Add menu item and page in Admin Panel of WordPress
  2. on that page, let us add text messages using a form having a text area and button.
  3. it should show the added text messages as message boxes in the WordPress admin panel.
  4. it should let us add/delete/update the messages.

Plugin Name: The Admin Messages
Plugin URI:
Author: Wp saints
Author URI:
Version: 9.0

function the_admin_menu(){
    add_menu_page('Form' , 'Form Items' , 'manage_options'  ,'mypage','the_admin_menu_page'  , ' dashicons-menu' , 6);

add_action('admin_menu' ,'the_admin_menu');

function the_admin_menu_page()

<form method="post">
<lable><b>Enter your Message</b></lable><br><br>
<button> Submit</button>



function jal_install () {
   global $wpdb;

   $table_name = $wpdb->giftmix . "messagebox"; 
global $wpdb;

$charset_collate = $wpdb->get_charset_collate();

$sql = "CREATE TABLE $entermessage (
  id mediumint(9) NOT NULL AUTO_INCREMENT,
  time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
  name tinytext NOT NULL,
  text text NOT NULL,
  url varchar(55) DEFAULT '' NOT NULL,
) $charset_collate;";

require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
dbDelta( $sql );

 $Enter = ($_POST["YourName"]);
      $Email = ($_POST["Email"]);



I have created this but now need suggestions from seniours on what to do next?
Please Help. Thank you.

Jacob Peattie 1 year 2022-01-12T06:53:12-05:00 0 Answers 0 views 0

Leave an answer