Content Visibility for Divi Builder
Content Visibility for Divi Builder allows Sections and Modules to be displayed/hidden based on the outcome of a PHP boolean expression. This plugin is for both the standalone Divi theme (or child themes thereof) and the Divi Builder plugin, version 3 or higher! Developer Filters Expression Validation Filters The following filters allow developers to customize expression validation behavior. Add these filters in your theme’s functions.php or in a custom plugin. content_visibility_for_divi_builder_blocked_functions Filter the array of blocked function names. Functions in this list will cause an expression to fail validation. All comparisons are case-insensitive. Example – allow file_get_contents (blocked by default): add_filter( 'content_visibility_for_divi_builder_blocked_functions', function( $functions ) { return array_diff( $functions, array( 'file_get_contents' ) ); } ); Example – block an additional function: add_filter( 'content_visibility_for_divi_builder_blocked_functions', function( $functions ) { $functions[] = 'my_dangerous_function'; return $functions; } ); content_visibility_for_divi_builder_allowed_tokens Filter the array of allowed PHP token types (T_* constants). Tokens not in this list will cause an expression to fail validation. This is an advanced filter – consult the PHP tokenizer documentation before modifying. Example – allow the T_VARIABLE token type (blocked by default, use with caution): add_filter( 'content_visibility_for_divi_builder_allowed_tokens', function( $tokens ) { $tokens[] = T_VARIABLE; return $tokens; } ); content_visibility_for_divi_builder_allowed_chars Filter the array of allowed single-character tokens. Characters not in this list (such as =, ;, {, }, `, @, &, |, ~, ^) will cause an expression to fail validation. Example – allow the & character for bitwise operations: add_filter( 'content_visibility_for_divi_builder_allowed_chars', function( $chars ) { $chars[] = '&'; return $chars; } ); content_visibility_for_divi_builder_allowed_callables Filter the array of callables (function names and Class::method static-method entries) the validator considers known-safe. Anything not on the allowlist (and not on the blocked_functions denylist) is treated as an “Unknown callable” error. Names are normalized (leading \ stripped, namespace\ keyword prefix stripped, lowercased) before comparison, so \My\Namespace\Class::method, My\Namespace\Class::method, and namespace\My\Namespace\Class::method all match the same allowlist entry. The default list ships with WordPress conditional tags (is_user_logged_in, current_user_can, is_admin, etc.). The Expression Validation tab’s content scanner generates a ready-to-paste snippet for this filter pre-populated with every custom callable currently in your content. Example – allowlist a theme helper and a static service method: add_filter( 'content_visibility_for_divi_builder_allowed_callables', function( $callables ) { $callables[] = 'mytheme_should_be_visible'; $callables[] = 'MyTheme\Visibility\Service::checkUser'; return $callables; } );
Top keywords
- divi12×2.85%
- builder11×2.61%
- divi builder11×2.61%
- filter11×2.61%
- visibility11×2.61%
- visibility for divi10×2.38%
- functions9×2.14%
- allowed8×1.90%
- function8×1.90%
- blocked7×1.66%
- content7×1.66%
- expression7×1.66%
Squad Modules Lite – 61 Free Divi 5 & Divi 4 Modules for Divi Builder
Squad Modules Lite is the most complete free Divi module pack built for Divi 5. It adds 61 free modules and 8 extensions — all 61 run natively inside the Divi 5 Visual Builder (Block API), and 60 of them also run in the classic Divi 4 builder. Install once, build in either version — your existing pages keep working and new ones get the full Divi 5 experience. View all modules → | Upgrade to Pro Trusted by Divi builders worldwide and actively maintained — with frequent security patches, new modules, and same-day fixes for new Divi releases. Why Squad Modules? Truly Divi 5 native — all 61 modules — every single module is a first-class Block API citizen with full Visual Builder support, live preview, and design controls. Not a handful of modules, not “static modules only” — the entire library runs natively in Divi 5. The largest free module library — 61 free modules across 6 categories, more than any other free Divi module pack, with no feature paywalls on the free set. Free where other packs charge — Countdown Timer, Timeline, Data / Comparison Table, Charts, Floating Chat Button, Reading Progress Bar, and Image Hotspots are Pro-only in most Divi add-ons. Squad ships all seven free, with no paywall. Divi 4 supported, zero migration — 60 of the 61 modules also run in the classic Divi 4 builder (Post Carousel is Divi 5-only). Pages built in Divi 4 stay in Divi 4; new Divi 5 pages use the native modules. No migration, no broken layouts, no conversion step. 8 free extensions — site-wide helpers that aren’t modules: post duplication, Divi Library shortcodes, login-page branding, font/SVG/JSON uploads, and more. Lean by design — disable any module or extension from the React dashboard; only active items load assets on the front end, so your pages stay fast. Form stylers for 9 plugins — natively style Contact Form 7, WPForms, Gravity Forms, Ninja Forms, Fluent Forms, Forminator, Formidable, MetForm, and SureForms — no custom CSS. Maintained and secure — frequent security patches, Divi compatibility updates, and new modules. WPML-ready and translation-ready out of the box. Switching from another Divi module pack? Squad Modules covers the most-used modules from popular free add-ons — team member, testimonial, pricing table, icon box, advanced tabs, flip box, before/after slider, dividers, typing text, gradient text, business hours, image carousel, Lottie, post grid, form stylers, and more — plus modules those packs gate behind Pro: countdown timer, timeline, data/comparison table, charts, floating chat button, reading progress bar, and image hotspots. And it adds the one thing most of them still lack: complete, native Divi 5 support across the whole library. Creative Modules (21) Advanced Divider — 16 divider styles: solid, double, dashed, dotted, groove, shadow, image, icon, text, gradient, Lottie, wave, zigzag, and more. Dual Button — two independent CTAs side by side, each with its own link, style, and icon. Advanced Button — single button with dual icon slots, hover overlay, and rich state controls. Typing Text — animated typewriter headline with configurable words, speed, color, and cursor. Glitch Text — RGB-split glitch animation for bold, striking headlines. Gradient Text — CSS gradient coloring for headings and paragraph text. Scrolling Text — marquee-style attention-grabbing ticker with custom speed and direction. Star Rating — display star ratings for reviews, testimonials, and products. Breadcrumbs — schema-ready navigation trail so visitors always know where they are. Table of Contents — auto-generated, anchor-linked TOC from page headings with smooth scroll. Number Counter — animated count-up stat with prefix, suffix, icon, and image. Text Highlighter — hand-drawn SVG highlight/underline annotation on scroll. Drop Cap Text — typographic drop caps for emphasis paragraphs. Inline Content — mix text, icons, images, buttons, and dividers in a single flowing line. Floating Images — decorative images with CSS keyframe floating motion. Animated Heading — cycling headlines with fade, slide, or flip transitions. Image Reveal — clip-path or color-overlay image reveal on scroll. Countdown Timer — evergreen and fixed-date modes with on-expiry actions (hide, redirect, or show a message), timezone-aware, no external JS. Charts — Bar, Line, Pie, and Doughnut charts in one module (Chart.js), multi-dataset, animate-on-scroll, accessible canvas. The chart library loads only when a chart is on the page. Floating Chat Button — WhatsApp, Telegram, Messenger, phone, email, and custom deep links with online-hours scheduling and prefilled messages; GDPR-friendly with no third-party script. Reading Progress Bar — top/bottom bar or corner ring tracking the whole page or a specific content area, with color/gradient and hide-on-complete. Image & Media Modules (10) Lottie — lightweight JSON animations with playback controls, no extra JS libraries. Image Mask — apply CSS shape masks (blob, leaf, SVG geometry) to any image. Before / After Slider — drag-handle comparison slider for transformations and product shots. Gallery — filterable image gallery with masonry, grid, and lightbox layouts. Image Carousel — touch-friendly carousel with captions, autoplay, and lightbox. Logo Carousel — logo slider with hover effects and links. Logo Grid — responsive logo grid with hover effects and links. Video Popup — YouTube or Vimeo video inside a click-triggered lightbox. Advanced Video — styled video player with custom poster, overlay controls, and sticky dock. Image Hotspots — annotate any image with unlimited percentage-positioned pins, each with a tooltip, dot/icon/number marker, and hover or click trigger; keyboard-accessible. Dynamic Content Modules (4) Post Grid — filterable blog post grid with 16 element types, ACF/custom fields, pagination, and AJAX load more. Post Carousel — Swiper-powered post carousel with autoplay, loop, dots, arrows, and slide/fade/coverflow effects. (Divi 5 only.) Author Box — author bio with avatar, social links, and multiple layout options. Post Reading Time — estimated reading time displayed on any post or page type. Content Modules (13) Flip Box — cards that flip on hover (rotate, slide, zoom, fade, open, diagonal) to reveal back content. Hover Box — image card with animated content overlay on hover. Business Hours — weekly schedule with per-day highlighting and a Closed state. Skill Bar — animated progress bars that fill on scroll with label and percentage. Social Share — share buttons for major social networks, server-rendered, CSS-only. Google Embed Map — fully styled Google Map embedded in any Divi layout. Team Member — team/staff cards with photo, role, bio, social links, and schema.org Person markup. Testimonial — customer reviews with avatar, rating, name/role, and schema.org Review markup. Pricing Table — responsive pricing plans with featured highlight, ribbon, tick/cross feature lists, and CTA buttons. Icon Box — blurb-style box pairing an icon, image, or Lottie animation with title, content, badge, and a clickable link. Advanced Tabs — tabbed content with horizontal/vertical layouts, mobile accordion, icon tabs, and URL deep-linking. Timeline — vertical or horizontal timeline with alternating or one-side layouts, scroll-triggered reveal, and icon/image/number markers; repeatable child items. Data / Comparison Table — responsive table (stack or scroll) with highlight column/row, sticky header, optional client-side sort, ribbon, and CSV-style paste; repeatable child rows. Form Styler Modules (9) Style every popular form plugin natively from the Divi builder — colors, fonts, spacing, borders, and focus states — with no custom CSS required. Contact Form 7 WPForms Gravity Forms Ninja Forms Fluent Forms Forminator Formidable Forms MetForm SureForms Auth Modules (4) Replace the default WordPress login screens with fully branded, Divi-styled pages. Login Form — custom wp-login.php replacement with logo, colors, and redirects. Register Form — branded registration screen. Lost Password Form — styled lost-password screen matching your login page. Reset Password Form — password-reset form with strength meter and redirect. 8 Free Extensions Copy Post or Page — one-click duplication with multisite support. Divi Library Shortcode — insert saved Divi Library layouts anywhere via shortcode. Custom Login Page — style the entire wp-login.php experience from Divi. Forgot Password — lost-password page branded to match your custom login. Reset Password — password-reset page with strength meter. Font Upload — upload custom fonts through the WordPress media uploader. JSON Upload — import/export Divi layouts and settings in JSON format. SVG Upload — safely upload and serve scalable SVGs in WordPress. Upgrade to Squad Modules Pro Already shipping with 54 free modules — Pro adds 30+ premium modules and extensions for advanced layouts and dynamic content, all with the same native Divi 5 + Divi 4 support: Advanced List & Taxonomy List — design rich, structured lists from any data. Advanced Blurb & Advanced Heading (multi-part) — pixel-perfect headings and feature blocks. CPT Grid & User List — dynamic grids for custom post types and users. Advanced Slider & Advanced Accordion — high-conversion interactive layouts. Plus priority email support and early access to new modules. View Pro Demo → Upgrade to Pro → Resources Documentation Submit a bug or feature request Full Changelog Facebook Community Squad Modules is built by The WP Squad — a dedicated WordPress product team based in Dhaka, Bangladesh. If this plugin saves you time, please leave a 5-star review — it helps more Divi users find it.