Ecommerce Shopify WordPress Discussion

What WordPress hook can I use to filter content output to the browser if I'm using an Elementor template to render the page?

I'm using Elementor on a site and an Elementor template page containing the Social Icons widget. Since this is a template, the social icon's URL is dynamic and pulls data from and ACF field. I'm trying to display or hide each social icon based on whether or not a URL for the respective social icon exists in the database. I already implemented a "hack" to filter the final rendered HTML output following ideas from this post. However, I'm trying to do this without having to use the PHP DOM methods as they don't support HTML5 and converting back and forth from HTML5 causes some issues on our site. In addition the DOM methods require parsing the entire page's HTML output which we don't need. Ideally I'd like to find a hook that could filter ONLY the social icons widget's HTML output, before the HTML output is actually created. Possibly where Wordpress is gathering the data to render the page. I'm aware of the Elementor hook's for the front-end and widgets but I'm not sure if these hooks are implemented in the proper proper page-rendering life cycle stage or if there is method I can use to run the checks and modify output. The widget hooks seem to apply to the Elementor theme editor display, as opposed to the actual page pre-rendering.
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.