SHARE
TWEET

Untitled

a guest Jun 13th, 2011 148 Never
  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. }
RAW Paste Data
Top