Skip to content

Instantly share code, notes, and snippets.

@fastlinemedia
Created September 19, 2017 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fastlinemedia/39cd911655b742aee8263dd5d1ed40cb to your computer and use it in GitHub Desktop.
Save fastlinemedia/39cd911655b742aee8263dd5d1ed40cb to your computer and use it in GitHub Desktop.
Disable HTML module rendering when in the Beaver Builder UI.
add_filter( 'fl_builder_render_module_content', function( $content, $module ) {
if ( 'html' === $module->settings->type && FLBuilderModel::is_builder_active() ) {
$content = 'HTML rendering disabled in the builder.';
}
return $content;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment