_rep_abort_this(); } public function do_action() { $slug = Tools::sanitize_get_param( 'slug' ); try { /** @var Action_Page_It $page */ $page = $this->rep_get_item( $slug ); } catch ( Repository_Exception $exception ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped wp_die( $exception->getMessage() ); } if ( ! $page->check_permission() ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped wp_die( __( 'You do not have access to view this page', 'jet-form-builder' ) ); } Pages_Manager::instance()->set_current_page_raw( $page ); try { $page->render_page(); } catch ( Not_Found_Page_Exception $exception ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped wp_die( $exception->getMessage() ); } } }