I’ve noticed certain embed providers like to enable a lot of extra parameters by default. I’ve manage to slim this down for Soundcloud for example, but can someone with some regex knowledge tell me if what I’m trying to do is possible? I have the following:
No I don’t think so.. mainly because you’re not just removing them but you’re replacing them with new values. If the new values were the same (like “=false”) for both I guess it could be done but since you’re now actively choosing to replace exact strings with new values depending on what the string is this is the way to go.
That said I’m not an expert in hardcore PHP. But from my experience this is fine!
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users