capability() ) ) { wp_die( esc_html__( 'You do not have permission to access this page.', 'devplugins-custom-form-builder' ), esc_html__( 'Permission denied', 'devplugins-custom-form-builder' ), array( 'response' => 403 ) ); } Template::render( $this->view(), $this->data() ); } /** * Returns the admin URL of the screen. * * @param array $args Optional. Extra query arguments. Default empty. */ public function url( array $args = array() ): string { $args = array_merge( array( 'page' => $this->slug() ), $args ); return add_query_arg( $args, admin_url( 'admin.php' ) ); } /** * Returns the data passed to the view. * * @return array Variables exposed to the template. */ protected function data(): array { return array(); } }