Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ACF-VC Integrator - Add prepend for text field output
<?php
add_filter('acfvc_text','acfvc_text_add_prepend_to_output',10,3);
function acfvc_text_add_prepend_to_output ( $output, $field, $post_id ) {
$new_output = "<span>".$field["prepend"]."</span> ".$output;
return $new_output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.