-
-
Save mgibbs189/dd6e0a20fa84f11cd7219aa014a9b759 to your computer and use it in GitHub Desktop.
facetwp shortcodes in layout builder
This file contains 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
<?php | |
add_filter( 'facetwp_builder_item_value', function( $value, $item ) { | |
if ( 'el-2ydbgp' == $item['settings']['name'] ) { | |
$value = do_shortcode( $value ); | |
} | |
return $value; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment