In my content I have a ‘shortcode’ to display videos with different parameters depending on how I want the video to look. For example: height, width, video, etc.
What can I write in php to search for and add content after it?
Keep in mind {parameters} will always be different.
Well, when I need to do something like this i use preg_replace or preg_replace_callback..
You then have to come up with the logic though =)
Edit:
Just read your post more…
You want to leave the tag as is, and add something after it..
You could do this with preg replace.. like this:
Probably not the best way to do it though, maybe some kind of offset capture would be better?