storage = Storage::get_instance(); } /** * Render single submission view. * * @since 1.1.0 * * @param string $submission_id Submission ID to view. */ public function render( string $submission_id ): void { if ( ! current_user_can( 'manage_activelayer' ) ) { wp_die( esc_html__( 'Sorry, you are not allowed to access this page.', 'activelayer-anti-spam-spam-protection-for-forms-comments' ) ); } $submission = $this->storage->find( $submission_id ); if ( ! $submission ) { wp_die( esc_html__( 'Submission not found.', 'activelayer-anti-spam-spam-protection-for-forms-comments' ) ); } ?>