WPPaste WordPress Functions index
Page 149

Welcome to the WPPaste WordPress Function index. This page contains a an alphabetically sorted list of functions that are available for use in WordPress. Each function has a brief description of what it does and how it can be used. To find out more about a particular function, simply click on the function name.

media_handle_sideload()

Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload().

media_sideload_image()

Downloads an image from the specified URL, saves it as an attachment, and optionally attaches it to a post.