/** * Check if it's a option page or not. * * @return bool */ public function is_option_page() { if ($this->page === null) { return papi_is_option_page(); } return $this->page->is(Papi_Core_Page::TYPE_OPTION); }
/** * Get the data page. * * @param int $post_id * @param string $type * * @return Papi_Core_Page|null */ function papi_get_page($post_id = 0, $type = 'post') { return Papi_Core_Page::factory($post_id, $type); }