prefix . 'visitors_edits'; if(isset($_GET["delete"])){ $wpdb->delete($table_name, array( 'edit_id' => $_GET["delete"] ) ); flashMessage("The review was deleted","danger"); } if(!empty($_POST)){ wp_update_post([ "ID"=>$_POST["ID"], "post_content"=>$_POST["post_content"] ]); $wpdb->delete($table_name, array( 'edit_id' => $_POST["edit_id"] ) ); flashMessage("The post was updated successfully",""); //Notify visitor if(isset($_POST["notify_visitor"])){ require 'mail.php'; $post = get_post($_POST["ID"]); $mail = [ "visitor_name"=>$_POST["visitor_name"], "post_title"=>$post->post_title, "post_url"=>get_permalink($_POST["ID"]), "blog_title" => get_bloginfo("name"), "admin_message"=>$_POST["admin_message"] ]; $visitor_submitionMail=new visitors_edits_EMAIL($mail,"visitor_approval"); $visitor_submitionMail->send($_POST["visitor_email"]); } } $edits = $wpdb->get_results("SELECT * FROM ".$table_name); for ($r=0; $r post=get_post($edits[$r]->post_id); } ?>

> Emty pending list

>

Pending reviews ()

Post Author Author comment Date Options
post->post_title; ?> visitor_name?> visitor_comment); ?> edit_time); echo date_format($creationDate,"m/d/Y")." at ".date_format($creationDate,"h:i a") ?> Review Delete