src/WordpressClient.php
function newPost($title, $body, array $content = array())
    {
        $default                 = array(
            'post_type'   => 'post',
            'post_status' => 'publish',
        );
        $content                 = array_merge($default, $content);
        $content['post_title']   = $title;
        $content['post_content'] = $body;

        $params = array(1, $this->username, $this->password, $content);

        return $this->sendRequest('wp.newPost', $params);
    }
function newPost($title, $body, array $content = array())
    {
        $default                 = array(
            'post_type'   => 'post',
            'post_status' => 'publish',
        );
        $content                 = array_merge($default, $content);
        $content['post_title']   = $title;
        $content['post_content'] = $body;

        $params = array(1, $this->username, $this->password, $content);

        return $this->sendRequest('wp.newPost', $params);
    }
function newPost ( $ title , $ body , array $ content = array ( ) ) { $ default = array ( 'post_type' => 'post' , 'post_status' => 'publish' , ) ; $ content = array_merge ( $ default , $ content ) ; $ content [ 'post_title' ] = $ title ; $ content [ 'post_content' ] = $ body ; $ params = array ( 1 , $ this -> username , $ this -> password , $ content ) ; return $ this -> sendRequest ( 'wp.newPost' , $ params ) ; }
Create a new post of any registered post type.

@param string  $title        the post title
@param string  $body         the post body
@param array   $categorieIds the list of category ids
@param integer $thumbnailId  the thumbnail id
@param array   $content      the content array, see more at wordpress documentation

@return integer the new post id

@link http://codex.wordpress.org/XML-RPC_WordPress_API/Posts#wp.newPost
Create a new post of any registered post type .