Created
September 19, 2017 16:47
-
-
Save fastlinemedia/39cd911655b742aee8263dd5d1ed40cb to your computer and use it in GitHub Desktop.
Disable HTML module rendering when in the Beaver Builder UI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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