mirror of
https://github.com/Frumph/comic-easel.git
synced 2026-07-18 18:34:32 -04:00
f1945f4d66
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
18 lines
452 B
PHP
18 lines
452 B
PHP
<?php
|
|
// if both logged in and not logged in users can send this AJAX request,
|
|
// add both of these actions, otherwise add only the appropriate one
|
|
// add_action( 'wp_ajax_nopriv_ceo_comic_upload', 'myajax_submit' );
|
|
add_action( 'wp_ajax_comic_upload', 'ceo_comic_upload' );
|
|
|
|
function ceo_comic_upload() {
|
|
// generate the response
|
|
$response = '{success:true}';
|
|
|
|
// response output
|
|
echo $response;
|
|
|
|
// IMPORTANT: don't forget to "exit"
|
|
exit;
|
|
}
|
|
|
|
?>
|