Guest User

Untitled

a guest
Oct 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $content = the_content();
  2.  
  3.  
  4. // inside $content will be something like ##s009dsf0a## which represents my youtube code. I have a function that accepts the youtube code and outputs the entire object block player. I need to replace the hash to hash with my function.
  5.  
  6. function ($youtubecode) {
  7. blah
  8. }
  9.  
  10. // what would the code look like to replace the ## and what is in between and inject my youtube video function in place of it. So ultimately I would have
  11.  
  12. // this is some content this is some content blah blah <object.........>youtube player</object> this is more content blah blah.
Add Comment
Please, Sign In to add comment