Skip to content

Instantly share code, notes, and snippets.

@New0
Last active February 14, 2020 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save New0/c52431995ad59b390fe422daca8f87ac to your computer and use it in GitHub Desktop.
Save New0/c52431995ad59b390fe422daca8f87ac to your computer and use it in GitHub Desktop.
Remove backslash from parsed data of bracket magic tags in Caldera Forms
<?php
/*
* This is very basic, you may want to target a precise $form, $magics or type of $value using conditions.
*/
add_filter( 'caldera_forms_do_field_bracket_value', function($value, $magics, $entry_id, $form ){
return implode("",explode("\\",$value));
}, 10, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment