Secure and protect WordPress REST API from unauthorized access using JWT token, Basic Authentication, API Key,...
Content Visibility for Divi Builder.
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
Where it falls short
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.
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!
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
Other plugins for crypto and Web3 projects.
Secure and protect WordPress REST API from unauthorized access using JWT token, Basic Authentication, API Key,...
Crypto payment gateway for WooCommerce and Easy Digital Downloads. Accept 100+ coins: Bitcoin, Ethereum, BNB,...
ABC Crypto Checkout is a powerful cryptocurrency payment gateway for WooCommerce that lets you accept Bitcoin,...
Accept Bitcoin, Ethereum, and 300+ cryptocurrencies in WooCommerce using the official NOWPayments crypto payme...
Accept Bitcoin/USDT payments on your WooCommerce website. Crypto payments go directly to your wallet.
Instant Approval High Risk Merchant Gateway with instant payouts to your USDC POLYGON wallet using fiat to cry...