0, ], $atts, 'eppro_template' ); $template_id = absint( $atts['id'] ); if ( ! $template_id ) { return ''; } // Verify it's a valid theme builder template if ( get_post_type( $template_id ) !== 'eppro_hf_template' ) { return ''; } // Verify it's published if ( get_post_status( $template_id ) !== 'publish' ) { return ''; } // Render using Elementor. The markup is Elementor's own escaped output; // wp_kses_post() would strip icons, form fields and inline CSS. $content = EPPRO_Elementor_Helper::get_template_content( $template_id, true ); if ( '' === trim( $content ) ) { return ''; } return '