form = new Form(); $loader->add_action( 'init', $this->form, 'handle_submission' ); $loader->add_action( 'init', $this, 'register_shortcodes' ); } /** * Register frontend shortcodes. * * @return void */ public function register_shortcodes(): void { add_shortcode( 'aarambha_case_management_form', [ $this, 'render_submission_form' ] ); } /** * Render the case submission form. * * @return string */ public function render_submission_form(): string { return $this->form->render(); } }