{"flag":true,"single":true,"pageTitle":"wordpress auto poster script get reference code","post":{"id":329,"user_id":"1","slug":"wordpress-auto-poster-script-get-reference-code-sc3n","title":"wordpress auto poster script get reference code","body":"<p>used at freethemesupport.com<\/p>\r\n<pre class=\"language-markup\"><code>&lt;?php\r\n\r\nrequire_once('wp-load.php');\r\nrequire_once('wp-config.php'); \r\nrequire_once('wp-includes\/wp-db.php'); \r\nrequire_once('wp-admin\/includes\/taxonomy.php'); \r\n\r\nerror_reporting( E_ALL );\r\nclass wp_rest{\r\n\t\r\n\t\/*  Reference \r\n\t\tCreatePost: \r\n\t\tAddComment:\r\n\t\tReplyToComment:\r\n\t\tUploadMedia:\r\n\t*\/\r\n\t\/\/ Creating WordPress Post\r\n\tpublic function CreatePost($title,$content,$category){\r\n\t\t\r\n\t\t\/\/ Create post object\r\n\t\t$my_post = array(\r\n\t\t  'post_title'    =&gt; wp_strip_all_tags( $title ),\r\n\t\t  'post_content'  =&gt; $content,\r\n\t\t  'post_status'   =&gt; 'publish',\r\n\t\t  'post_author'   =&gt; 1,\r\n\t\t  'post_category' =&gt; $category,\r\n\t\t  'post_date' =&gt; date('Y-m-d H:i:s')\r\n\t\t);\r\n\t\t \r\n\t\t\/\/ Insert the post into the database\r\n\t\treturn wp_insert_post( $my_post );\r\n\t\t\r\n\t}\r\n\r\n\t\/\/ Add Comments \r\n\tpublic function AddComment($email,$content,$post_id,$reply,$y,$m,$d,$h,$i,$s,$email2){\r\n\t\r\n\t\t\r\n\t\t\t$agent = $_SERVER['HTTP_USER_AGENT'];\r\n\t\t\t$ax = explode(\"@\",$email);\r\n\t\t\t\r\n\t\t\t$data = array(\r\n\t\t\t\t'comment_post_ID' =&gt; $post_id,\r\n\t\t\t\t'comment_author' =&gt; $ax[0],\r\n\t\t\t\t'comment_author_email' =&gt; $email,\r\n\t\t\t\t'comment_content' =&gt; $content,\r\n\t\t\t\t\/\/'comment_author_IP' =&gt; '127.3.1.1',\r\n\t\t\t\t'comment_agent' =&gt; $agent,\r\n\t\t\t\t'comment_date' =&gt; date(\"$y-$m-$d $h:$i:$s\"),\r\n\t\t\t\t\/\/'comment_date_gmt' =&gt; date('Y-m-d H:i:s'),\r\n\t\t\t\t'comment_approved' =&gt; 1,\r\n\t\t\t\t\r\n\t\t\t);\r\n\r\n\t\t\t$comment_id = wp_insert_comment($data);\r\n\t\t\techo $comment_id;\r\n\t\t\t\r\n\t\t\t\t\/\/ handling reply to main comment.. only reply when it's empty\r\n\t\t\t\tif ($reply != ''){\r\n\t\t\t\t\t$this-&gt;ReplyToComment($comment_id,$reply,date(\"$y-$m-$d H:i:s\"),$post_id,$email2);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\r\n\t\t\t\r\n\t}\r\n\t\t\r\n\t\t\/\/return $comment_id;\r\n\t\r\n\t\r\n\t\/\/ Add Reply To Comments\r\n\tfunction ReplyToComment($id,$reply,$date,$post_id,$email = \"filereal@live.com\"){\r\n\t\t$agent = $_SERVER['HTTP_USER_AGENT'];\r\n\r\n\t\t$data = array(\r\n\t\t\t'comment_post_ID' =&gt; $post_id,\r\n\t\t\t'comment_author' =&gt; 'Freethemesupport',\r\n\t\t\t'comment_author_email' =&gt; 'filereal@live.com',\r\n\t\t\t'comment_content' =&gt; $reply,\r\n\t\t\t\/\/'comment_author_IP' =&gt; '127.3.1.1',\r\n\t\t\t'comment_agent' =&gt; $agent,\r\n\t\t\t'comment_date' =&gt; $date,\r\n\t\t\t'comment_approved' =&gt; 1,\r\n\t\t\t'comment_parent' =&gt; $id\r\n\t\t);\r\n\r\n\t\t$comment_id = wp_insert_comment($data);\r\n\t\treturn $comment_id;\r\n\t\t\r\n\t}\r\n\tfunction S_ReplyToComment($id,$reply,$date,$post_id,$email){\r\n\t\t$agent = $_SERVER['HTTP_USER_AGENT'];\r\n\t\t$username = explode(\"@\",$email);\r\n\t\tif ($username[0] == \"filereal\"){\r\n\t\t\t$username = \"themepedia\";\r\n\t\t}else{\r\n\t\t\t$username = $username[0];\r\n\t\t}\r\n\t\t$data = array(\r\n\t\t\t'comment_post_ID' =&gt; $post_id,\r\n\t\t\t'comment_author' =&gt; $username,\r\n\t\t\t'comment_author_email' =&gt; $email,\r\n\t\t\t'comment_content' =&gt; $reply,\r\n\t\t\t\/\/'comment_author_IP' =&gt; '127.3.1.1',\r\n\t\t\t'comment_agent' =&gt; $agent,\r\n\t\t\t'comment_date' =&gt; $date,\r\n\t\t\t'comment_approved' =&gt; 1,\r\n\t\t\t'comment_parent' =&gt; $id\r\n\t\t);\r\n\r\n\t\t$comment_id = wp_insert_comment($data);\r\n\t\treturn $comment_id;\r\n\t\t\r\n\t}\r\n\tfunction SetPostImage($attachmentid,$postid){\r\n\t\techo set_post_thumbnail( $postid, $attachmentid );\r\n\t}\r\n\r\n\t\/\/ Upload Media\r\n\tfunction UploadMedia($file){\r\n\t\t$file = ''.$file;\r\n\t\t$filename = basename($file);\r\n\t\t$attachment_id = \"\";\r\n\t\t$upload_file = wp_upload_bits($filename, null, file_get_contents($file));\r\n\t\tif (!$upload_file['error']) {\r\n\t\t\t$wp_filetype = wp_check_filetype($filename, null );\r\n\t\t\t$attachment = array(\r\n\t\t\t\t'post_mime_type' =&gt; $wp_filetype['type'],\r\n\t\t\t\t'post_parent' =&gt; @$parent_post_id,\r\n\t\t\t\t'post_title' =&gt; preg_replace('\/\\.[^.]+$\/', '', $filename),\r\n\t\t\t\t'post_content' =&gt; '',\r\n\t\t\t\t'post_status' =&gt; 'inherit'\r\n\t\t\t);\r\n\t\t\t$attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], @$parent_post_id );\r\n\t\t\tif (!is_wp_error($attachment_id)) {\r\n\t\t\t\trequire_once(ABSPATH . \"wp-admin\" . '\/includes\/image.php');\r\n\t\t\t\t$attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );\r\n\t\t\t\twp_update_attachment_metadata( $attachment_id,  $attachment_data );\r\n\t\t\t}\r\n\t\t}\r\n\t\t\/\/unlink($file);\r\n\t\treturn $attachment_id;\r\n\t}\r\n\t\t\r\n\r\n}\r\n\r\nfunction checkRemoteFile($url)\r\n{\r\n\t$ch = curl_init();\r\n\tcurl_setopt($ch, CURLOPT_URL,$url);\r\n\t\/\/ don't download content\r\n\tcurl_setopt($ch, CURLOPT_NOBODY, 1);\r\n\tcurl_setopt($ch, CURLOPT_FAILONERROR, 1);\r\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\r\n\t$result = curl_exec($ch);\r\n\tcurl_close($ch);\r\n\tif($result !== FALSE)\r\n\t{\r\n\t\treturn true;\r\n\t}\r\n\telse\r\n\t{\r\n\t\treturn false;\r\n\t}\r\n}\r\n\r\n$wp = new wp_rest();\r\n\/\/ [TEST]\r\nif (isset($_GET['media'])){\r\n\t\r\n\t\/\/ uploading the media and getting an id for media \r\n\techo $wp-&gt;UploadMedia($_GET['media']);\r\n\texit();\r\n}\r\nif (isset($_GET['attatch_id'])){\r\n$wp-&gt;SetPostImage($_GET['attatch_id'],$_GET['post_id']);\r\n}\r\nfunction exclodeSpecialWords($text){\r\n\t$ret = 0;\r\n\tif (strpos($text, 'username') !== false) {\r\n\t\t$ret = 1;\r\n\t}\r\n\tif (strpos($text, 'email') !== false) {\r\n\t\t$ret = 1;\r\n\t}\r\n\tif (strpos($text, 'password') !== false) {\r\n\t\t$ret = 1;\r\n\t}\r\n\tif (strpos($text, 'password') !== false) {\r\n\t\t$ret = 1;\r\n\t}\r\n\tif (strpos($text, 'Version') !== false) {\r\n\t\t$ret = 1;\r\n\t}\r\n\treturn $ret;\r\n\t\r\n}\r\nfunction getOnePTagFromTemplate(){\r\n\t$all_p = file_get_contents('data\/p_template.html');\r\n\t$all_p = explode(\";\",$all_p);\r\n\t$random = rand(0,9);\r\n\treturn $all_p[$random];\r\n}\r\n function normalizeString ($str = '')\r\n{\r\n    $str = strip_tags($str); \r\n    $str = preg_replace('\/[\\r\\n\\t ]+\/', ' ', $str);\r\n    $str = preg_replace('\/[\\\"\\*\\\/\\:\\&lt;\\&gt;\\?\\'\\|]+\/', ' ', $str);\r\n      \r\n    $str = preg_replace(\"\/(&amp;)([a-z])([a-z]+;)\/i\", '$2', $str);\r\n    $str = str_replace('%', '-', $str);\r\n    return $str;\r\n}\r\n\r\nfunction getLiTags($allLI){\r\n\t$LiContent=\"\";\r\n\t\t$numbers = range(1, count($allLI)-1);\r\n\t\tshuffle($numbers);\r\n\t\t$countli=0;\r\n\t\tfor($i=0;$i&lt;count($allLI)-1;$i++){\r\n\t\t\tif(exclodeSpecialWords($allLI[$numbers[$i]])){ \/\/\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t$LiContent.=$allLI[$numbers[$i]];\r\n\t\t\t\r\n\t\t\tif($countli&gt;=10){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t$countli++;\r\n\t\t}\r\n\t\treturn $LiContent;\r\n\t}\r\n\tfunction getPTags($paragraph){\r\n\t\t$para=\"\";\r\n\t\t$numbers = range(1, count($paragraph)-1);\r\n\t\tshuffle($numbers);\r\n\t\t$countli=0;\r\n\t\tfor($i=0;$i&lt;count($paragraph)-1;$i++){\r\n\t\t\tif(exclodeSpecialWords($paragraph[$numbers[$i]])){ \/\/\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t$para.=$paragraph[$numbers[$i]];\r\n\t\t\tif($countli&gt;=5){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t$countli++;\r\n\t\t}\r\n\t\treturn $para;\r\n\t}\r\n\t\r\nif (isset($_GET['fname'])){\r\n\t$wp-&gt;AddNewUser($_GET['username'],$_GET['pass'],$_GET['email'],$_GET['fname'],$_GET['lname']);\r\n}\r\n\r\nif (isset($_POST['ree'])){\r\n\t$email = $_POST['email'];\r\n\t$content = $_POST['content'];\r\n\t$post_id = $_POST['post_id'];\r\n\t$reply = $_POST['reply'];\r\n\t$y = $_POST['y'];\r\n\t$m = $_POST['m'];\r\n\t$d = $_POST['d'];\r\n\t$h = $_POST['h'];\r\n\t$i = $_POST['i'];\r\n\t$s = $_POST['s'];\r\n\t$id = $_POST['cid'];\r\n\t\/\/ these are all required fields\r\n\t\/\/ ($email,$content,$post_id,$reply,$y,$m,$d,$h,$i,$s){\r\n\t\/\/ ReplyToComment($id,$reply,$date,$post_id,$email = \"filereal@live.com\")\r\n\t$datee = date(\"$y-$m-$d $h:$i:$s\");\r\n\t$wp-&gt;S_ReplyToComment($id,$content,$datee,$post_id,$email);\r\n}\r\n\r\nif (isset($_POST['comment'])){\r\n\t\r\n\t$email = $_POST['email'];\r\n\t$content = $_POST['content'];\r\n\t$post_id = $_POST['post_id'];\r\n\t$reply = $_POST['reply'];\r\n\t$y = $_POST['y'];\r\n\t$m = $_POST['m'];\r\n\t$d = $_POST['d'];\r\n\t$h = $_POST['h'];\r\n\t$i = $_POST['i'];\r\n\t$s = $_POST['s'];\r\n\t\r\n\t\/\/ these are all required fields\r\n\t\/\/ ($email,$content,$post_id,$reply,$y,$m,$d,$h,$i,$s){\r\n\t\r\n\t$wp-&gt;AddComment($email,$content,$post_id,$reply,$y,$m,$d,$h,$i,$s,'filereal@live.com');\r\n\t\/\/$wp-&gt;ReplyToComment($commentid,'thank you for your input..');\r\n\t\r\n}\r\nif (isset($_GET['test'])){\r\n\t\t\r\n\t\t$grav_url = \"https:\/\/www.gravatar.com\/avatar\/\" . md5( strtolower( trim( $_GET['test'] ) ) ) . \"?d=\" . urlencode( $default ) . \"&amp;s=\" . $size.\"&amp;d=404\";\r\n\t\tif (!checkRemoteFile($grav_url)){\r\n\t\t\techo '0';\r\n\t\t}else{\r\n\t\t\techo '1';\r\n\t\t}\r\n\t\techo \"&lt;img src='\".$grav_url.\"'\/&gt;\";\r\n}\r\n\r\n\/\/ 1109 1110\r\nfunction addWatermark($image_URL){\r\n\t\t$image =  file_get_contents($image_URL);\r\n\t\t$filename=\"thumbnail.png\";\r\n\t\tfile_put_contents(\"data\/$filename\",$image);\t\t\r\n\t\tsleep(1);\r\n\t\t$mime = mime_content_type('data\/'.$filename);\r\n\t\t$ext=\"jpg\";\r\n\tif($mime==\"image\/jpeg\"){\r\n\t\t$im = imagecreatefromjpeg('data\/thumbnail.png');\t\r\n\t}else{\r\n\t\t$ext=\"png\";\r\n\t\t$im = imagecreatefrompng('data\/thumbnail.png');\r\n\t}\r\n\t\r\n\t$stamp = imagecreatefrompng('data\/watermark.png');\r\n\tif(!$im){\r\n\t\tdie(\"issue in creating image  try again please \");\r\n\t}\r\n\t\/\/ Set the margins for the stamp and get the height\/width of the stamp image\r\n\t$marge_right = 0;\r\n\t$marge_bottom = 0;\r\n\t$sx = imagesx($stamp);\r\n\t$sy = imagesy($stamp);\r\n\r\n\t\/\/ Copy the stamp image onto our photo using the margin offsets and the photo \r\n\t\/\/ width to calculate positioning of the stamp. \r\n\t\/\/imagecopy(dst_img, src_im_that_is_fit_on_dest, dst_x, dst_y, src_x, src_y, src_width, src_height)\t\/\/use to copy two or more images to 1\r\n\timagecopy($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp));\r\n\tif($ext==\"png\"){\r\n\t\timagepng($im,'data\/output.png');\r\n\t\timagedestroy($im);\r\n\t\treturn \"output.png\";\r\n\t}else{\r\n\t\timagejpeg($im,'data\/output.png');\r\n\t\timagedestroy($im);\r\n\t\treturn \"output.png\";\r\n\t}\r\n\r\n}\r\n\r\nfunction getAllCat($foldername){ \/\/ return all cats that have more than 4 files (non empty)\r\n\t$path = \"data\/$foldername\/categories.txt\";\r\n\t$folderinlower=strtolower($foldername);\r\n\t$allcatsare=array();\r\n\t$allCats= file_get_contents($path);\r\n\t$allCats=explode(\"\\n\",$allCats);\r\n\tforeach($allCats as $cat){\r\n\t\t$c= str_replace(\"https:\/\/themeforest.net\/category\/$folderinlower\/\",\"\",$cat); \/\/change this also\r\n\t\t$dir_path = \"data\/$foldername\".\"\/\".trim($c).\"\";\r\n\t\t$num =  scandir($dir_path);\r\n\t   if (count($num) &lt;= 4){\r\n\t   }else{\r\n\t\t$allcatsare[]=$c;\r\n\t   }\r\n\t}\r\n\treturn $allcatsare;\r\n}\r\nfunction getRandomFileFromFolder($folderName){\t\r\n\t$folderName = trim($folderName);\r\n\t$path =\"data\/WordPress\/$folderName\";\r\n\t$files = array_diff(scandir($path), array('.', '..','ScrapedRowNo.txt','urls.txt'));\r\n\tif(count($files)&gt;0){\r\n\t\tforeach($files as $file){\r\n\t\t\treturn trim($file);\r\n\t\t\tdie;\r\n\t\t}\r\n\t}else{\r\n\t\treturn 0;\r\n\t}\r\n\t\r\n}\r\n\r\n##################################################################################\r\n\r\nif (isset($_GET['post'])){\r\n\t$foldername=\"WordPress\";\r\n\t$allCats = getAllCat($foldername);\r\n\tprint_r($allCats);\r\n\t############################ To create bulk categories \r\n\t\t\/* foreach($allCats as $c){\r\n\t\t\twp_create_category($c, 24 );\r\n\t\t}\r\n\t\tdie; *\/\r\n\t\t\r\n\t\t\r\n\t######################################################\r\n\t$pickCategory = (rand(0,count($allCats)-1));; \/\/anyrandom number b-w 0 to n\r\n\t$catName = trim($allCats[$pickCategory]); \/\/random choose an cat ie apps\r\n\t$catId = get_cat_ID($catName); \/\/id of selected category\r\n\t$fileName = getRandomFileFromFolder($catName); \/\/json file\r\n\t$path =\"data\/$foldername\/$catName\/$fileName\";\r\n\techo $catName.\"&lt;br\/&gt;\";\r\n\techo $catId.\"&lt;br\/&gt;\";\r\n\techo $path.\"&lt;br\/&gt;\";\r\n\tif(!$fileName){ echo \"file not found\";die(); }\r\n\t$jsondata = json_decode(file_get_contents($path));\r\n\t$image_URL = $jsondata-&gt;imageURL;\r\n\t\/\/\/\/\/\/\/\/\/\/ save imageimage_URL for uploading\r\n\tif($image_URL){\r\n\t\t\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/save image + add watermark\r\n\r\n\t\t$imagenameReturn = addWatermark($image_URL); \/\/ It will create an image with watermark\/\/https:\/\/themepedia.net\/data\/output.png\t\t\r\n\t}\r\n\t$image = \"data\/$imagenameReturn\";\r\n\t$titleAppend = array(\"FREE DOWNLOAD\",\"NULLED THEME\", \"FREE\",\"FREE THEME\", \"cracked theme\");\r\n\t\r\n\t$title = normalizeString($jsondata-&gt;title).\" \".$titleAppend[rand(0,3)];\r\n\t$author = $jsondata-&gt;author;\r\n\t$price = $jsondata-&gt;price;\r\n\t$saleCount = $jsondata-&gt;saleCount;\r\n\t$demourl = $jsondata-&gt;demourl;\r\n\t$paragraph = $jsondata-&gt;paragraph;\r\n\t$allLI = $jsondata-&gt;allLI;\r\n\t$ourl = $jsondata-&gt;url;\r\n\t$content_random_oneP =  getOnePTagFromTemplate();\r\n\t$content_random_LI = getLiTags($allLI);\r\n\t$content_random_P = getPTags($paragraph);\r\n\t$rating = round($jsondata-&gt;rating);\r\n\t$starsYellow = str_repeat('&lt;span class=\"fa fa-star\" style=\"color:orange;\"&gt;&lt;\/span&gt;',$rating);\r\n\t$starsGray = str_repeat('&lt;span class=\"fa fa-star\" style=\"color:gray;\"&gt;&lt;\/span&gt;',5-$rating);\r\n\t$finalRating = $starsYellow.\"\".$starsGray;\r\n\t\r\n\t\r\n\t\r\n\t\/\/echo $content_random_oneP.\" \".$content_random_LI.\" \".$content_random_P;\r\n\t\r\n\t\/\/send request to filesonice me\r\n\t\t$url = 'https:\/\/filesonic.me\/secret_sex.php';\r\n\t\t$size = (rand(12,31));\r\n\t\t$ch = curl_init($url);\r\n\t\t$jsonData = array(\r\n\t\t\t'filename' =&gt; $title.\" + Nulled .rar\",\r\n\t\t\t'size' =&gt; $size.\" MB\",\r\n\t\t\t'path' =&gt; $foldername.'2021\/'\r\n\t\t);\r\n\t\t$jsonDataEncoded = json_encode($jsonData);\r\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\r\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $jsonDataEncoded);\r\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application\/json')); \r\n\t\t curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\t\t$result = curl_exec($ch);\r\n\t\tif($result){\r\n\t\t\t$result = json_decode($result);\r\n\t\t\tif(isset($result-&gt;status) &amp;&amp; $result-&gt;status==200){\r\n\t\t\t$uid = $result-&gt;u_id;\r\n\t\t\t$template = file_get_contents('data\/content.html');\r\n\t\t\t$template = str_replace(\"[ONEPTAG]\",$content_random_oneP,$template);\r\n\t\t\t$template = str_replace(\"[RATING]\",$finalRating,$template);\r\n\t\t\t$template = str_replace(\"[SALESCOUNT]\",$saleCount,$template);\r\n\t\t\t$template = str_replace(\"[AUTHOR]\",$author,$template);\r\n\t\t\t$template = str_replace(\"[DEMOURL]\",$demourl,$template);\r\n\t\t\t$template = str_replace(\"[DETAILS]\",$content_random_P,$template);\r\n\t\t\t$template = str_replace(\"[LILIST]\",$content_random_LI,$template);\r\n\t\t\t$template = str_replace(\"[FILESONIC]\",\"https:\/\/filesonic.me\/downloader.php?id=$uid\",$template);\r\n\t\t\t$template = str_replace(\"[TITLE]\",$title,$template);\r\n\t\t\t$template = str_replace(\"[OURL]\",$ourl,$template);\r\n\t\t\t$template = str_replace(\"[description]\",\"Download free \".$title.\" from Freethemesupport\",$template);\r\n\t\t\t$id = $wp-&gt;CreatePost($title,$template,array($catId));\r\n\t\t\t$image_id = $wp-&gt;UploadMedia($image);\r\n\t\t\t$wp-&gt;SetPostImage($image_id,$id);\r\n\t\t\t$descriptionX=\"Download free \".$title.\" from Freethemesupport.com having nulled version\";\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\/\/echo $id;\r\n\t\t\t\/\/$id = $wp-&gt;CreatePost($_POST['title'],$_POST['content'],explode(',',$_POST['cat']));\r\n\t\t\t   update_post_meta ( $id, 'author', $author );\r\n\t\t\t   update_post_meta ( $id, 'themename', $title );\r\n\t\t\t   update_post_meta ( $id, 'description', $descriptionX );\r\n\t\t\t   \/\/update_post_meta ( $id, 'rating', $_POST['rating'] );\r\n\t\t\t   \/\/update_post_meta ( $id, 'totalreviews', $_POST['totalreviews'] );\r\n\t\t\tunlink($path);\r\n\t\t\techo \"done from $path\";die;\r\n\t\t}\r\n\t\t}else{\r\n\t\t\techo \"failed try again\";\r\n\t\t}\r\n\t\r\n}\r\n##################################################################################\r\n\r\n?&gt;<\/code><\/pre>","category_id":"29","is_private":"0","created_at":"2026-01-07T11:03:05.000000Z","updated_at":"2026-01-07T11:03:05.000000Z","category":{"id":29,"user_id":"1","name":"Wordpress","slug":"wordpress-uzoa","parent_id":"1","created_at":"2023-11-10T02:49:29.000000Z","updated_at":"2023-11-10T02:49:29.000000Z"},"user":{"id":1,"name":"R GONDAL","email":"rizikmw@gmail.com","email_verified_at":null,"two_factor_confirmed_at":null,"current_team_id":"1","profile_photo_path":null,"created_at":"2023-03-12T10:49:33.000000Z","updated_at":"2025-01-10T12:59:00.000000Z","profile_photo_url":"https:\/\/ui-avatars.com\/api\/?name=R+G&color=7F9CF5&background=EBF4FF"}},"pageDesc":"used at freethemesupport.com &lt;?php  require_once('wp-load.php'); require_once('wp-config.php');  require_once('wp-includes\/wp-db.php');   - wordpress auto poster script get reference code (Updated: January 7, 2026) - Read more about wordpress auto poster script get reference code at my programming site [SITE]","categories":[]}