View Single Post
Old 04-01-2010, 10:37 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,214
you could probably add a bit of ajax, so it reloads the page after delete.

theirs also a function in 2.9+ wp_delete_post() which requires the postid

Code:
global $post;
wp_delete_post($post->ID);
but the other one works for previos versions
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote