wp_delete_post Wordpress function


Description:

Trashes or deletes a post or page.


Syntax:


Arguments:

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


Return Type:

(mixed) False on failure


Define At:

wp-includes/post.php


Wordpress Reference URL:

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


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