add_filter('woocommerce_terms_and_conditions_page_content',function ($content){$terms_page_id=(int) get_option('woocommerce_terms_page_id');if (!$terms_page_id) return $content;// Render Elementor-built content if Elementor is active if (class_exists('\Elementor\Plugin')){$elementor_html=\Elementor\Plugin::instance()->frontend->get_builder_content_for_display($terms_page_id);if (!empty($elementor_html)){$content=$elementor_html}}// Ensure shortcodes inside the content are executed return do_shortcode($content)},20);