Include file upload button inside post and process file

It looks like you want a few things from a single button press. Initiate request Process request Prompt user WP AJAX will let you utilize jQuery to send a request to admin ajax (action) and trigger your process using shell_exec. When complete you’ll compose the response with wp_send_json_success() and read the result back on your … Read more