field_renderer = $field_renderer; } /** * Inject fields before the one expected Form Lite closing tag. * * @param string $content Rendered widget content. * @param string $widget_id Expected widget ID. */ public function inject( string $content, string $widget_id ): string { if ( ! ElementorFormLiteContextFactory::is_valid_widget_id( $widget_id ) ) { return $content; } $opening_tags = array(); $closing_tags = array(); if ( 1 !== preg_match_all( '/