This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 13th, 2011  |  syntax: PHP  |  size: 0.30 KB  |  views: 144  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if (is_page('Upp')){
  2.         require_once(ABSPATH . 'wp-admin/includes/file.php');
  3.         require_once(ABSPATH . 'wp-admin/includes/media.php');
  4.         set_time_limit(300);
  5.         $upload = media_sideload_image("http://29.media.tumblr.com/tumblr_lmp1tbiYwh1qzlfumo1_500.jpg", "202", "my description");
  6.         die ( $upload );
  7. }
clone this paste RAW Paste Data