WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Jonathan Horowitz v5.03

Content Visibility for Divi Builder

Content Visibility for Divi Builder.

Content Visibility for Divi Builder

The facts

Rating
4.8★ from 100
Active installs
2k+
Price
Free
Last updated
5 Jun 2026
Added
Feb 2016
Requires WP
5.5
Tested up to
WP 7.0.4
Requires PHP
7.0
Downloads
76,430

Our analysis

AI-assisted

Content Visibility for Divi Builder is a WordPress plugin that enables you to show or hide sections and modules based on the result of a PHP boolean expression. It is compatible with both the standalone Divi theme and the Divi Builder plugin, version 3 or higher.

The plugin includes developer filters that allow customization of expression validation behaviour. This can be useful for developers looking to control which PHP functions and token types are allowed in expressions, enhancing the flexibility and security of content visibility settings.

Best for: This plugin is suitable for developers using the Divi theme or Divi Builder who need advanced content visibility options.

What it does well

  • Allows conditional display of content based on PHP expressions
  • Compatible with standalone Divi theme and Divi Builder plugin
  • Includes developer filters for custom validation behaviour

Where it falls short

  • Requires knowledge of PHP for effective use
  • Limited to users of the Divi theme or Divi Builder plugin

Verdict

Content Visibility for Divi Builder provides a specific solution for controlling content display based on PHP conditions, making it useful for developers familiar with coding.

From the developer

Jonathan Horowitz's own description of Content Visibility for Divi Builder, lightly tidied.

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

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for crypto and Web3 projects.

JWT Authentication for WP REST APIs

Secure and protect WordPress REST API from unauthorized access using JWT token, Basic Authentication, API Key,...

Free 20k+ installs 4.4★ (74)
MyCryptoCheckout

Crypto payment gateway for WooCommerce and Easy Digital Downloads. Accept 100+ coins: Bitcoin, Ethereum, BNB,...

Free 8k+ installs 4.3★ (49)
ABC Crypto Checkout

ABC Crypto Checkout is a powerful cryptocurrency payment gateway for WooCommerce that lets you accept Bitcoin,...

Free 1k+ installs 5★ (29)
NOWPayments for WooCommerce

Accept Bitcoin, Ethereum, and 300+ cryptocurrencies in WooCommerce using the official NOWPayments crypto payme...

Free 4k+ installs 4.1★ (16)
Bitcoin Payments

Accept Bitcoin/USDT payments on your WooCommerce website. Crypto payments go directly to your wallet.

Free 2k+ installs 4.5★ (35)