Files
comic-easel/ceo-ajax-functions.php
T
Philip M. Hofer (Frumph) f1945f4d66 Cleanup and adding ceo_display_comic_locations
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
2010-09-22 00:18:56 -07:00

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;
}
?>