There are many great code snippets in their Gitlab. You might find more on their…
Render Replace Vars in the ID Field in WPBakery in the Total Theme like „{{category}}“
//ENABLE ID FIELD RENDER SHORTCODE
add_filter( 'shortcode_atts_vc_row', function( $atts ) {
if ( class_exists( 'TotalTheme\Replace_Vars' ) ) {
foreach ( $atts as $k => $v ) {
if ( in_array( $k, [ 'local_scroll_id', 'el_id' ] ) ) {
$atts[ $k ] = (new TotalTheme\Replace_Vars())->replace( $v );
}
}
}
return $atts;
} );
Dieser Beitrag hat 0 Kommentare