Support » Fixing WordPress » media_sideload_image() is returning nothing.

  • Hi i am using media_sideload_image($img_url,$post_id) function by sending the image url and post id as aruguments in my plugin file i am working on. This function is located in wp-admin/includes/media.php.

    I don’t know i am not getting output for any of the functions located in wp-admin/includes/media.php and wp-admin/includes/file.php. I tried calling download_url($file) which is located in wp-admin/includes/file.php also still no luck.

    I even tried to create a custom test function in media.php file and called that function from my plugin file it doesn’t return anything and any echo statements after it also won’t execute.

    Please some one help me. I will be thankful to you.

  • The topic ‘media_sideload_image() is returning nothing.’ is closed to new replies.