Home › Forums › Bug Reports › Regression: Backslashes stripped in WYSIWYG › Reply To: Regression: Backslashes stripped in WYSIWYG
Hi,
I’m having the same problem with what I think is the same line of code (#188) in the _functions.php file.
In my case, the backslashes get stripped from plain text fields where I need to store regular expressions.
Your suggestion about hooking to the ‘update_field’ filter won’t work because you are calling streepslashes_deep() BEFORE the apply_filters() call.
I think the option of the backend filter is a quick one, but it may also be useful to pass more info to the filter, e.g., the field type and name, field group, etc., so the programmer can have more context info in order to make the decision either to return false or true.
Thanks in advance,
Adrián
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.