SHARE
TWEET

Untitled

a guest Feb 20th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function xyz_plugin_callback($match)
  2. {
  3.   $tag_parts = explode(",", rtrim($match[0], "]"));
  4.   $output = YOUX_TARGET;
  5.   $output = str_replace("###URL###", $tag_parts[1], $output);
  6.   $output = str_replace("###URL2###", $tag_parts[2], $output);
  7. }
  8.    
  9. function xyz_plugin_callback($match)
  10. {
  11.     $tag_parts = explode(",", rtrim($match[0], "]"));
  12.     $output = YOUX_TARGET;
  13.     $output1 = str_replace("###URL###", $tag_parts[1], $output);
  14.     $output2 = str_replace("###URL2###", $tag_parts[2], $output);
  15. }
  16.    
  17. $temp_match = trim($match[0], "[]");
  18.  
  19. $urls = array();
  20. preg_match("/([ws]*),([ws]*),.*/", $temp_match, $urls);
  21.  
  22. $url1 = $urls[1];
  23. $url2 = $urls[2];
  24.  
  25. // do your $output str_replace here.
  26.    
  27. $tag_parts1 = explode(" ", rtrim($match[0], "]"));
  28.  
  29. $tag_parts = explode(",",$tag_parts1[1],2);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top