wp_delete_attachment Wordpress function


Description:

Trashes or deletes an attachment.


Syntax:


Arguments:

(int) $post_id Attachment ID.
(bool) $force_delete Whether to bypass trash and force deletion. Defaults to false.


Return Type:

(mixed) False on failure. Post data on success.


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_delete_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 ×