WordPress Plugin Development tutorial from scratch (Part 37) Save & List Student’s section data

In this video session we will discuss about “My Book” Plugin,

We’ll see how we create, list Student’s Data

Section of JS code
submitHandler: function() {
var postdata = “action=mybooklibrary&param=save_student&” + jQuery(“#frmAddStudent”).serialize();
jQuery.post(mybookajaxurl, postdata, function(response) {
var data = jQuery.parseJSON(response);
if (data.status == 1) {
cssClass: “success”,
html: data.message
} else {


Section of Library Code
elseif ($_REQUEST[‘param’] == “save_student”) {
// save data to db table

//usename should not be repeat : username_exists($_REQUEST[‘username’])
//email should be unique: email_exists($_REQUEST[’email’])

$student_id = $user_id = wp_create_user($_REQUEST[‘username’],$_REQUEST[‘password’],$_REQUEST[’email’]);
$user = new WP_User($student_id);

$wpdb-insert(my_students_table(), array(
“name” = $_REQUEST[‘name’],
“email” = $_REQUEST[’email’],
“user_login_id” = $user_id
echo json_encode(array(“status” = 1, “message” = “Student created successfully”));

Setting User Role
//user role registration
add_role(“wp_book_user_key”,”My Book User”,array(

Listing of Authors
global $wpdb;
$allstudents = $wpdb-get_results(

“SELECT * from “.my_students_table().” ORDER by id desc”,””

Watch these also:
Table Create/Drop:
Plugin Internal Pages:
Plugin Form validations & media upload:

To add an administration menu
Please Watch for help:

To add an administration submenus:
Please Watch for help:

Important Videos from Plugin Development Series
About Shortcodes in wordpress:
Ajax Request in wordpress by wp_ajax_{action_name}:
Insert data from form to wordpress database table:
Create WordPress page on Plugin Activation:

Subscribe :

1. Some knowledge of PHP, HTML for this video series
2. How to Install WordPress:

Also you can learn WordPress Custom
Theme Development:
Widget Development:
Theme Options Development:

online web tutor,
profotech solutions,
wordpress plugin development from scratch in hindi,
wordpress plugin development from scratch in easy steps,
wordpress plugin development,
wordpress plugin development in easy steps,
plugin development in wordpress from scratch in hindi,
plugin development in wordpress by online web tutor,
plugin development in wordpress tutorials from scratch in hindi,
plugin theme development tutorials in hindi,
plugin development tutorials in hindi,
owt tuts,
online web tutorials,

Online Web Tutor
Keep learning and Sharing 🙂

Please watch: “Learn backbone.js tutorial from scratch”


Fuente – Source

Wordpress Plugin Development tutorial from scratch (Part 37) Save & List Student’s section data

Necesitas ayuda con wp? Entonces WPVideo es tu sitio.
Encuentra lo que buscas entre cientos de miles de videos y experiencias personales de otros usuarios. Todos los que empezamos con wp deberíamos tener acceso a esta web, ojalá yo hubiera tenido algo así cuando empecé mi camino como webmaster 🙂
Pero ahora quiero y puedo poner esta web a vuestra disposición.
Disfrutadla 😉

Need help with wp? Then WPVideo is your site.
Find what you are looking for among hundreds of thousands of videos and personal experiences of other users. All of us who started with wp should have access to this website, I wish I had something like that when I started my journey as webmaster 🙂
But now I want and I can put this website at your disposal.
Enjoy it 😉


Publicado en Bases de datos (Databases), Plugins, Temas (Themes), Tutoriales (Tutorials), Wordpress y etiquetado .

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *