slug(); } /** * If it returns FALSE, this page is not registered * * @return bool */ public function is_active(): bool { return true; } /** * @throws Not_Found_Page_Exception */ public function render() { try { Pages_Manager::instance()->get_current()->render_page(); } catch ( Not_Found_Page_Exception $exception ) { wp_die( esc_html__( 'You do not have access to view this page.', 'jet-form-builder' ) ); } } /** * Returns current page url * * @param array $query_args * * @return string */ public function get_url( $query_args = array() ): string { return $this->admin_url( array_merge( array( 'page' => $this->slug() ), $query_args ) ); } }