Overview
The filter hook ctdqb_divi_layout_html allows you to modify the HTML output of Divi layouts when they are rendered within the Query Builder module. This filter provides control over both the layout content and its associated CSS styles before final output.
Hook Parameters
- $props – Array of module properties.
- $query – Query object or data related to the current query context.
- $dl_id – Integer representing the Divi layout ID being rendered.
Understanding the Content Structure
The `$content_and_style` parameter contains:
- HTML Content – The rendered Divi layout shortcode output
- CSS Styles – Dynamic styles generated by Divi Builder elements (wrapped in style tags)
0 Comments