Last active
February 14, 2020 16:01
-
-
Save New0/c52431995ad59b390fe422daca8f87ac to your computer and use it in GitHub Desktop.
Remove backslash from parsed data of bracket magic tags in Caldera Forms
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 | |
/* | |
* 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