facetwp layout builder shortcodes

djrmom

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

/** use do_shortcode on all layout builder items
** it is preferrable to target specific items
** as in https://facetwp.com/documentation/developers/output/facetwp_builder_item_value/
** if possible
**/
add_filter( ‘facetwp_builder_item_value’, function( $value, $item ) {
$value = do_shortcode( $value );
return $value;
}, 10, 2 );
{{/gist}}