initialized ) { return; } add_action( 'wpcf7_admin_footer', array( $this, 'render_modal_with_form' ), 20, 1 ); $this->initialized = true; } public function render_modal_with_form( $post ) { if ( ! $post || ! method_exists( $post, 'id' ) ) { return; } $form_id = $post->id(); if ( ! $form_id ) { return; } $this->contact_form = wpcf7_contact_form( $form_id ); if ( ! $this->contact_form ) { return; } parent::render_modal(); } protected function get_title() { return __( 'Test Current Form Submission', 'chimpmatic-lite' ); } protected function render_header_actions() { ?> contact_form ) { return '
' . esc_html__( 'No form available.', 'chimpmatic-lite' ) . '
'; } ob_start(); ?>