_convert_date_gmt example


    protected function _prepare_post( $post$fields ) {
        // Holds the data for this post. built up based on $fields.         $_post = array( 'post_id' => (string) $post['ID'] );

        // Prepare common post fields.         $post_fields = array(
            'post_title'        => $post['post_title'],
            'post_date'         => $this->_convert_date( $post['post_date'] ),
            'post_date_gmt'     => $this->_convert_date_gmt( $post['post_date_gmt']$post['post_date'] ),
            'post_modified'     => $this->_convert_date( $post['post_modified'] ),
            'post_modified_gmt' => $this->_convert_date_gmt( $post['post_modified_gmt']$post['post_modified'] ),
            'post_status'       => $post['post_status'],
            'post_type'         => $post['post_type'],
            'post_name'         => $post['post_name'],
            'post_author'       => $post['post_author'],
            'post_password'     => $post['post_password'],
            'post_excerpt'      => $post['post_excerpt'],
            'post_content'      => $post['post_content'],
            'post_parent'       => (string) $post['post_parent'],
            'post_mime_type'    => $post['post_mime_type'],
            
Home | Imprint | This part of the site doesn't use cookies.