October 2018
Beginner
300 pages
8h 34m
English
We can use normal post submissions as well as AJAX submissions, as this is a backend screen without any other dependencies. However, AJAX gives better user experience, and hence we will be submitting the form data through AJAX. First, we have to add a new script using the load_admin_scripts function to handle the AJAX request for saving slider images. We will be using the exact same code used for the WooCommerce Product Files plugin, and hence you can refer to the main file inside the source code directory for the implementation of the load_admin_scripts function.
Next, we have to handle the form submission process using AJAX. The code for the file form submission is available inside the wqkm-admin.js file ...
Read now
Unlock full access