wp_insert_attachment() Function: Insert an attachment. Source: wp-includes/post.php:5006 Used by 13 functions | Uses 2 functions