<?php
$site = file_get_contents("https://www.shopinext.com/");
function ara($bas, $son, $yazi)
{
@preg_match_all('/' . preg_quote($bas, '/') .
'(.*?)'. preg_quote($son, '/').'/i', $yazi, $m);
return @$m[1];
}
$Baslik = ara('<title>','</title>', $site);
include 'wp-config.php';
$my_post = array();
$my_post['post_title'] = $Baslik[0];
$my_post['post_content'] = 'deneme';
$my_post['post_status'] = 'publish';
$my_post['post_author'] = 1;
$my_post['post_category'] = 0;
$the_post_id = wp_insert_post( $my_post );
?>