facetwp shortcodes in layout builder

mgibbs189

{{gist file=”custom-hooks.php” lang=”php”}}
<?php

add_filter( ‘facetwp_builder_item_value’, function( $value, $item ) {
if ( ‘el-2ydbgp’ == $item[‘settings’][‘name’] ) {
$value = do_shortcode( $value );
}
return $value;
}, 10, 2 );

{{/gist}}