public function content($page = 0, $len = -1)
{
if ($form = $this->maybe_show_password_form()) {
return $form;
}
if ($len == -1 && $page == 0 && $this->_content) {
return $this->_content;
}
$content = $this->post_content;
if ($len > 0) {
$content = wp_trim_words($content, $len);
}
if ($page) {
$contents = explode('<!--nextpage-->', $content);
$page--;
if (count($contents) > $page) {
$content = $contents[$page];
}
}
$content = apply_filters('the_content', $content);
if ($len == -1 && $page == 0) {
$this->_content = $content;
}
return $content;
}