public function get_vars() { $content = array_merge((array) parent::get_vars()); $content['custom_date'] = ''; $content['permalink'] = 'mailto:' . $this->get_email(); $content['post_content']['the_content_raw'] = $this->get_post_content(); return $content; }
private function __retrieve_post($retrieved_post) { switch ($retrieved_post->post_type) { case 'people': $post_data = new customPostPeople($retrieved_post->ID, $this->options['date_format'], $this->options['post_taxonomy'], $this->options['post_thumbnail_size']); break; case 'post': default: $post_data = new customPost($retrieved_post->ID, $this->options['date_format'], $this->options['post_taxonomy'], $this->options['post_thumbnail_size']); break; } $post_data_vars = $post_data->get_vars(); return $post_data_vars; }