wp_insert_attachment Wordpress function


Description:

Insert an attachment.


Syntax:


Arguments:

(string|array) $object Arguments to override defaults.
(string) $file Optional filename.
(int) $parent Parent post ID.


Return Type:

(int) Attachment ID.


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_insert_attachment


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×