PHP search content for ID and add Class
I need a simple function that will search my wordpress content for a specific ID, and than add a class to the same element the ID is in.
Its for a video player plugin that displays itself via shortcode. My problem is the plugin gives each element an ID as follows, id="video-1-player", id="video-2-player". So the function needs to search the content for id="video-(any number)-player" and than insert a class in there.
thanks!
EDIT
heres the answer that worked for me.
Total Views: 8 Today Views: 0














