Borlabs3¶
Überblick¶
Borlabs3 stellt Content-Blocker bereit, die Inhalte bis zur Einwilligung sperren.
Einstellungen¶
Unter Theme-Optionen → Integration → Content Blocker:
- Blocker: Name (Service), Platzhalter-HTML
Anwendung im Frontend¶
Du kannst Inhalte per Shortcode oder Funktion blocken:
[content_blocker name="SERVICE"]...[/content_blocker]twtheme_content_blocker($content, $name)
Entwicklertipps¶
Relevante Funktionen¶
| Funktion | Zweck | Rückgabe |
|---|---|---|
twtheme_content_blocker($content, $name, $class = '') |
Inhalt anhand Borlabs-Consent blocken. | string |
Twtheme Hooks & Filter¶
| Hook/Filter | Typ | Parameter | Zweck |
|---|---|---|---|
twtheme_option_fields |
Filter | ($form_data) |
Borlabs-Optionen in Integration einfügen. |
twtheme_content_blocker |
Filter | ($content, $name) |
Blocker-HTML vor der Ausgabe anpassen. |