Back to Browse

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

2.6K views
Mar 25, 2018
32:00

In this video session we will discuss about "My Book" Plugin, #WordpressTutorialsPoint #WordpressLearnersHub #WordpressCustomizations #LearnWordpressStepbyStep #WordpressBySanjay We'll see how we create, list Student's Data Section of JS code ==================== jQuery("#frmAddStudent").validate({ 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) { jQuery.notifyBar({ 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); $user-set_role("wp_book_user_key"); $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( "read"=true )); Listing of Authors ======================= global $wpdb; $allstudents = $wpdb-get_results( $wpdb-prepare( "SELECT * from ".my_students_table()." ORDER by id desc","" ) ); Watch these also: Table Create/Drop: https://www.youtube.com/watch?v=i6aXHWFKUS0 Menus/Submenus: https://www.youtube.com/watch?v=j5bvuXsXksA Plugin Internal Pages: https://youtu.be/ Plugin Form validations & media upload: https://www.youtube.com/watch?v=Ai1qn7Io2yE To add an administration menu =============== Please Watch for help: https://www.youtube.com/watch?v=vpksyjXRcyE&list=PLT9miexWCpPUQkQwL-COHmo0Jd0qxLjTn&index=3 To add an administration submenus: =============== Please Watch for help: https://www.youtube.com/watch?v=opOfxoViN0M Important Videos from Plugin Development Series =============== About Shortcodes in wordpress: https://www.youtube.com/watch?v=F9Woyst2fr8 Ajax Request in wordpress by wp_ajax_{action_name}: https://www.youtube.com/watch?v=RAwahYG8Qfc Insert data from form to wordpress database table: https://www.youtube.com/watch?v=UxBDUzQHeMY Create Wordpress page on Plugin Activation: https://www.youtube.com/watch?v=oL8ffxggYZY SOCIAL : =============== Subscribe : https://www.youtube.com/channel/UCB2flCo-gW6RhpVVXySqcMg FACEBOOK : https://www.facebook.com/onlinewebtutorhub/ TWITTER: https://twitter.com/owthub BLOG: https://onlinewebtutorhub.blogspot.in/ RECOMMENDATION: =============== 1. Some knowledge of PHP, HTML for this video series 2. How to Install Wordpress: https://www.youtube.com/watch?v=MREgql9jmf0 Also you can learn Wordpress Custom =============== Theme Development: https://www.youtube.com/watch?v=MREgql9jmf0&list=PLT9miexWCpPV9WxY_QG3qxUGKzw54LboW Widget Development: https://www.youtube.com/watch?v=ZSbdYG1svV8&list=PLT9miexWCpPUgibUXDZ7JP1j3U-m61U8m Theme Options Development: https://www.youtube.com/watch?v=Ixq5IARSlgg&list=PLT9miexWCpPVwbt89KoRE5qBgJAlHUuLf Tags =============== 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, Thanks Online Web Tutor Keep learning and Sharing :) -~-~~-~~~-~~-~- Please watch: "Learn backbone.js tutorial from scratch" https://www.youtube.com/watch?v=HOAU-nfy5Sc -~-~~-~~~-~~-~-

Download

0 formats

No download links available.

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