| @@ -89,10 +89,9 @@ | ||
| 89 | 89 | }, 5 ); |
| 90 | 90 | |
| 91 | 91 | add_filter( 'the_content', function() use ( $template_id ) { |
| 92 | 92 | ob_start(); |
| 93 | - $content = \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( (int) $template_id, true ); | |
| 94 | - echo do_shortcode( $content ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor template HTML; wp_kses_post strips required style/script. | |
| 93 | + echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $template_id, true ); | |
| 95 | 94 | return ob_get_clean(); |
| 96 | 95 | } ); |
| 97 | 96 | } |
| 98 | 97 | } |